Brentford suffered a shock Carabao Cup exit as League Two Gillingham edged a penalty shootout to reach the fourth round for the first time in 26 years.
England World Cup hopeful Ivan Toney had put the Premier League hosts ahead in the third minute.
But the Gills scored with their first attempt of the match after 75 minutes as substitute Mikael Mandron headed in.
Mikkel Damsgaard was the first to miss in a high-quality shootout as Gillingham recorded a stunning upset.