Guiseley have been rewarded for reaching the FA Cup first round proper for the seventh time in their history with a home tie against one of the romantic names from the competition's history.
The Northern Premier League side will face Sutton United, mid-table in the Conference, but best known for knocking holders Coventry City out of the competition in 1987-88, when they were also a non-league team.
Sutton reached the third round in 2024, bowing out at Plymouth Argyle.
Phoenix club Halifax Town, tenth in the Conference, are away to Cheltenham Town, who have made a solid start to the League Two season.
League One Huddersfield Town were drawn at home to League Two Exeter City, managed by former Rotherham United manager Matt Taylor.
Bradford City and Barnsley were also handed home ties away to non-league opposition.
The Bantans were the highest-ranked team in the draw, and will face Marine, who hosted Tottenham Hotspur in the third round in 2021.
Barnsley could face the lowest-ranked side in the competition, with Combined Counties Premier Division South Tadley Calleva due at Oakwell but only if they can beat Aldershot Town, four divisions higher, in Tuesday's replay.
York City's home tie is an all-League Two affair against Northampton Town, the only side to take points off them at the Community Stadium when they drew 1-1 there earlier this month.
Harrogate Town, who swapped places with York in the summer, will also have a home tie if they can see off Bury in their replay. Fylde, seventh in the Conference, await the winners.
Sheffield Wednesday and Doncaster Rovers will both play outside of South Yorkshire, but against teams from a lower division.
The Owls are at League Two Oldham Athletic, whilst Doncaster travel to Conference side Kiddermnister Harriers.
Rotherham United face a difficult test at Bromley. The Millers were in last season's League One and Bromley in the fourth tier, but they swapped places at the end of the campaign.
Ties will be played on the first weekend of November, with replays available where needed.
