League One high-flyers Ipswich Town scored three times in the final 16 minutes to upset Championship side Rotherham in the FA Cup third round.
Goals from Cameron Humphreys, Conor Chaplin from the spot, Freddie Ladapo and a late Wes Burns penalty were enough to see the Tractor Boys through.
Conor Washington had briefly drawn the Millers level from the penalty spot two minutes into the second half.
Ipswich are in the draw for the fourth round for the first time in 13 years.
Despite dominating the first half, it took until the 43rd minute for Ipswich to take the lead when Humphreys stroked home after good work from Kayden Jackson and Ladapo.
The Millers drew level straight after half-time when Washington was brought down in the box by Richard Keogh and stepped up to send Vaclav Hladky the wrong way from the spot.
The Tractor Boys had a penalty of their own when Ladapo was dragged down by Wes Harding and Chaplin stepped up to put the home side in front.
Ladapo had a goal of his own minutes later, rounding Rotherham goalkeeper Viktor Johansson, who signed a new contract on Friday, before slotting in against his former club.
There was still time for Ipswich to add a fourth, with Burns smashing his spot-kick straight down the middle after Marcus Harness had been felled.
The Millers now turn their attention to their relegation battle and attempt to avoid sliding back into League One after just one season in the Championship.
- 24Vincent Young
- 2KeoghBooked at 47mins
- 3DavisSubstituted forEdwardsat 76′minutes
- 10ChaplinSubstituted forLeighat 77′minutes
- 23AlukoSubstituted forharnessat 68′minutes
- 19JacksonSubstituted forburnsat 77′minutes
- 9LadapoSubstituted forAhadmeat 83′minutes
- 6woodBooked at 89mins
- 30KiosoSubstituted forWellat 70′minutes
- 17FergusonSubstituted forBarlaserat 70′minutes
- 18RathboneBooked at 54mins
- 16LindsaySubstituted forMcCartat 75′minutes
- Seb Stockbridge
Match ends, Ipswich Town 4, Rotherham United 1.
Second Half ends, Ipswich Town 4, Rotherham United 1.
Corner, Ipswich Town. Granted by Cameron Humphreys.
Corner, Ipswich Town. Granted by Cohen Bramall.
Richard Wood (Rotherham United) is shown the yellow card for a bad foul.
Václav Hladky (Ipswich Town) wins a free kick in the defensive half.
Foul by Richard Wood (Rotherham United).
Foul by Marcus Harness (Ipswich Town).
Cameron Humphreys (Rotherham United) wins a free kick in the attacking half.
Goal! Ipswich Town 4, Rotherham United 1. Wes Burns (Ipswich Town) converts the penalty with a right footed shot to the center of the goal.
Penalty Ipswich Town. Kane Vincent-Young draws a foul in the penalty area.
Penalty conceded by Hakeem Odoffin (Rotherham United) after a foul in the penalty area.
Cameron Humphreys (Ipswich Town) wins a free kick on the left wing.
Foul by Cameron Humphreys (Rotherham United).
Substitution, Ipswich Town. Gassan Ahadme replaces Freddie Ladapo.
Kyle Edwards (Ipswich Town) hits the right post with a right footed shot from the center of the box.
Goal! Ipswich Town 3, Rotherham United 1. Freddie Ladapo (Ipswich Town) right footed shot from the center of the box to the center of the goal.
Attempt missed. Lee Evans (Ipswich Town) right footed shot from outside the box misses to the right.
Substitution, Ipswich Town. Wes Burns replaces Kayden Jackson because of an injury.
Substitution, Ipswich Town. Greg Leigh replaces Conor Chaplin.