Harrogate Town will travel to Wrexham on Saturday 16th December in the Buildbase FA Trophy First Qualifying Round.
The Dragons are the highest ranked team Town could have been drawn against at this stage, with Dean Keates' side trailing only Sutton in the National League standings.
Simon Weaver's side will travel to The Racecourse Ground for the first time, with the winners of the tie set to receive £6,000 in prize money.
Wrexham will be entering the competition at this stage, while Town beat Darlington 3-2 to reach the First Round for a second successive season.
Prices for the match are as follows: Adults £10, Over 64's/U21's £5, Over 80's/U18's £1.
In the event of a draw, a replay will take place on Tuesday 19th December at The CNG Stadium (Kick-off 19:45).