Match ends, Wrexham 3, Maidstone United 1.
Wrexham survived a spirited second-half performance by 10-man Maidstone to go through to the FA Cup third round.
Manny Smith volleyed Wrexham into an early lead, before an Andy Bishop penalty doubled their advantage after Maidstone's Aaron Simpson was sent off for fouling Wes York in the box.
But the part-timers set up a nervy finish as Alex Flisher tucked home from close range on the hour mark.
Bishop headed his second late on to seal the win for the Conference side.
The draw for the third round will take place on Monday, 8 December and will be televised on BBC Two from 19:00 GMT.
Wrexham manager Kevin Wilkin said: "I'm delighted to be in the next round but it was a fantastic tie and both sides played in the right spirit.
"Great credit to [Maidstone]. They've had one or two opportunities there and they're a club on the up.
"I'm just happy to be in the next round, anybody at home would be very nice."
- 18WhiteSubstituted forPearsonat 85'minutes
- 4SmithBooked at 43mins
- 8HarrisSubstituted forDurrellat 90+2'minutes
- 16YorkSubstituted forMoultat 76'minutes
- 2SimpsonBooked at 57mins
- 7BodkinSubstituted forBrownat 78'minutes
- 9MaySubstituted forDaviesat 60'minutes
- 10CollinSubstituted forLovellat 76'minutesBooked at 85mins
- Scott Mathieson
- Shots on Target
Second Half ends, Wrexham 3, Maidstone United 1.
Attempt missed. Andy Bishop (Wrexham) header from the centre of the box misses to the left. Assisted by Elliott Durrell with a cross.
Substitution, Wrexham. Elliott Durrell replaces Jay Harris.
Blaine Hudson (Wrexham) wins a free kick in the defensive half.
Foul by Alex Flisher (Maidstone United).
Attempt saved. Louis Moult (Wrexham) right footed shot from outside the box is saved in the centre of the goal. Assisted by Neil Ashton.
Foul by Jay Harris (Wrexham).
Jack Parkinson (Maidstone United) wins a free kick on the right wing.
Attempt missed. Connor Jennings (Wrexham) header from the centre of the box misses to the right. Assisted by Joe Clarke with a cross.
Goal! Wrexham 3, Maidstone United 1. Andy Bishop (Wrexham) header from the centre of the box to the bottom right corner. Assisted by James Pearson with a cross.
Substitution, Wrexham. James Pearson replaces Ross White.
Mark Lovell (Maidstone United) is shown the yellow card for a bad foul.
Manny Smith (Wrexham) wins a free kick in the defensive half.
Foul by Mark Lovell (Maidstone United).
Attempt blocked. Neil Ashton (Wrexham) left footed shot from outside the box is blocked.
Jay Harris (Wrexham) wins a free kick in the attacking half.
Foul by Tom Mills (Maidstone United).
Attempt missed. Louis Moult (Wrexham) right footed shot from outside the box misses to the left from a direct free kick.
Louis Moult (Wrexham) wins a free kick in the attacking half.