Match ends, Gillingham 1, Brackley Town 1.
Bradley Dack's volley in the seventh minute of injury time rescued Gillingham and denied Brackley a famous FA Cup first-round scalp.
Conference North Brackley were nearly ahead after four minutes when Steve Diggin hit the crossbar with a volley.
But they took the lead through Joe Martin's 69th-minute own goal.
Town looked to be heading to the second round for the first time in their history but Dack latched onto Adebayo Akinfenwa's header to deny them.
VIEW FROM THE DRESSING ROOM
Gillingham interim manager Peter Taylor told BBC Radio Kent:
"It was not what we are looking for, we want better than that, but the FA Cup always has shocks.
"We kick-off and Brackley, who did ever so well and deserve credit, had a great move in the first minute and it made our players even more nervous.
"On the plus side we kept going, and that's the most important thing.
"(About the manager's job) I haven't discussed that. We only spoke very quickly about the performance and the goal, that's about it. But I don't want to hear anything about that at the minute."
- 23HarrimanBooked at 13mins
- 5DaviesSubstituted forAkinfenwaat 66'minutes
- 26BarrettBooked at 50mins
- 11WestonSubstituted forDackat 66'minutes
- 18LeeBooked at 40minsSubstituted forMousinhoat 67'minutes
- 2ReidBooked at 14mins
- 3McDonaldSubstituted forNisevicat 45'minutes
- 10DigginSubstituted forJarvisat 89'minutes
- 9MulliganSubstituted forMillsat 70'minutes
- Lee Collins
- Shots on Target
Second Half ends, Gillingham 1, Brackley Town 1.
Corner, Gillingham. Conceded by Billy Turley.
Attempt saved. Adebayo Akinfenwa (Gillingham) right footed shot from the centre of the box is saved in the bottom right corner.
Goal! Gillingham 1, Brackley Town 1. Bradley Dack (Gillingham) right footed shot from the centre of the box to the bottom right corner. Assisted by Adebayo Akinfenwa.
Foul by Bradley Dack (Gillingham).
Eddie Nisevic (Brackley Town) wins a free kick in the defensive half.
Corner, Gillingham. Conceded by Steve Towers.
Adam Barrett (Gillingham) wins a free kick on the right wing.
Foul by Ben Mills (Brackley Town).
Attempt saved. Nathaniel Jarvis (Brackley Town) right footed shot from the left side of the box is saved in the bottom right corner.
Attempt missed. Michael Harriman (Gillingham) left footed shot from outside the box is close, but misses to the left.
Substitution, Brackley Town. Nathaniel Jarvis replaces Steve Diggin because of an injury.
Attempt saved. Bradley Dack (Gillingham) right footed shot from the centre of the box is saved in the bottom left corner.
Attempt missed. Adebayo Akinfenwa (Gillingham) header from the right side of the six yard box is close, but misses to the right.
Foul by John Mousinho (Gillingham).
Izak Reid (Brackley Town) wins a free kick on the left wing.
Cody McDonald (Gillingham) wins a free kick in the attacking half.
Foul by Brett Solkhon (Brackley Town).
Attempt missed. Cody McDonald (Gillingham) right footed shot from the centre of the box is close, but misses to the right.