Gillingham will play Blackpool at MEMS Priestfield Stadium in the first round of the 2024/25 Emirates FA Cup.
The draw was made on Monday evening on BBC Two at the University of Bradford Stadium by Danny Webber and Stuart McCall, and it will see the Gills welcome Steve Bruce back to Kent who played for the club between 1979 and 1984, making 237 appearances in all competitions.
He took over as manager at the League 1 club last month and has guided the team to tenth in the standings.
The two clubs last met in April 2021 at Bloomfield Road, the Gills falling to a 4-1 defeat having won the reverse league game 2-0 at ME7 thanks to two goals from Dominic Samuel.
The full draw is as follows:
Rotherham United v Cheltenham Town
Barrow v Doncaster Rovers
Worthing v Morecambe
Boreham Wood v Leyton Orient
Exeter City v Barnet
Carlisle United v Wigan Athletic
Tamworth v Huddersfield Town
Hartlepool or Brackley v Braintree Town
Curzon Ashton v Mansfield Town
Wycombe Wanderers v York City
Bradford City v Aldershot Town
Hednesford Town or Gateshead v Gainsborough Trinity or Boston United
Burton Albion v Scarborough Athletic
Tranmere Rovers v Oldham Athletic
Rochdale v Bromley
Walsall v Bolton Wanderers
Grimsby Town v Wealdstone
Bristol Rovers v Weston Super Mare
MK Dons v AFC Wimbledon
Altrincham or Solihull Moors v Maidstone United
Stockport County v Forest Green Rovers
Reading v Fleetwood Town
Stevenage v Guiseley
Northampton Town v Kettering Town
Rushall Olympic or Peterborough Sports v Accrington Stanley
Swindon Town v Colchester United
Salford City v Shrewsbury Town
Crewe Alexandra v Dagenham and Redbridge
Port Vale v Barnsley
Chesham United v Lincoln City
Chesterfield v Horsham
Southend United v Charlton Athletic
Notts County v Alfreton Town
Taunton Town or Maidenhead United v Crawley Town
Harrogate Town v Wrexham
Woking v Cambridge United
Gillingham v Blackpool
Tonbridge Angels v Harborough Town
Sutton United v Birmingham City
Newport County v Peterborough United
Ties will be played the weekend of November 1-4. TV picks will be announced later in the week, with ticket information available nearer the time.