Gills drawn at home to Premier League side in FA Cup third round.
Gillingham will play Premier League side Sheffield United at Priestfield in the third round of the Emirates FA Cup.
Stephen Clemence has guided his team to this stage following a 2-0 win at Edgar Street over Hereford in round one, before defeating League 1 Charlton by the same scoreline at Priestfield to be in the hat for round three.
ITV broadcast the draw prior to the tie between Eastleigh and Reading and it will see Gills host a Premier League side in January for the second successive year.
The full draw is as follows:
Luton Town v Bolton Wanderers
Shrewsbury Town v Wrexham or Yeovil Town
Arsenal v Liverpool
Stoke City v Brighton
Norwich City v Crewe or Bristol Rovers
West Ham v Bristol City
Tottenham Hotspur v Burnley
Fulham v Rotherham United
West Brom v Aldershot or Stockport
Southampton v Alfreton or Walsall
AFC Wimbledon or Ramsgate v Ipswich Town
Peterborough United v Leeds United
Millwall v Leicester City
Watford v Chesterfield or Leyton Orient
Sunderland v Newcastle United
Sheffield Wednesday v Cardiff City
Crystal Palace v Everton
Middlesbrough v Aston Villa
Nottingham Forest v Blackpool or Forest Green
Wigan Athletic v Manchester United
Manchester City v Huddersfield Town
Blackburn Rovers v Cambridge United
Gillingham v Sheffield United
Swansea City v Morecambe
Chelsea v Preston
QPR v Bournemouth
Coventry v Oxford
Brentford v Wolves
Plymouth Argyle v Sutton United
Maidstone United v Stevenage or Port Vale
Newport County or Barnet v Eastleigh or Reading
Hull City v Birmingham City
Third round ties are to be played the weekend of January 5-8, 2024.