More on KentOnline
Gillingham will play at home to West Ham United in the third round of the FA Cup.
The draw was made on Monday evening at the home of FA Cup holders Manchester City.
Gills boss Steve Evans commented on the draw, saying: "I have the utmost respect for (West Ham manager) Manuel Pellegrini, and it will be great to see him again."
He added: "Priestfield Stadium will be packed to the rafters and it’s just reward for the players who worked so hard in the first two rounds."
Former Arsenal captain Tony Adams and ex-Manchester City defender Micah Richards pulled the balls out of the bag at the Etihad Stadium.
West Ham - whose joint chairman David Gold is a close friend of Gills counterpart Paul Scally - currently sit 13th in the Premier League table.
The Gills won through to the third round after beating Doncaster 3-0 on Sunday.
A goal from Brandon Hanlan was enough to see off Sunderland in a first round replay, winning at Priestfield in extra-time.
It’s the second time in as many years that the Gills have made it to this stage of the competition.
Last year the Gills beat Cardiff City - then a Premier League team - thanks to a goal from Elliott List. Steve Lovell's team were beaten by Swansea City in round four.
A time and date of the match will be agreed shortly, once TV selections are made, but Gills’ scheduled League 1 game at Southend on Saturday, January 4 will be rearranged to accommodate the cup fixture.
Every third round tie will kick off a minute later than usual as part of a campaign to highlight mental health.