Daniel Jarvis scored a stoppage-time penalty as Stoke City came from 3-2 down in the 86th minute to win at Swansea City in Division 2.
Hosts Swansea took a two-goal lead at Liberty Stadium thanks to goals from Oliver Cooper and Tom Carroll.
The Potters restored parity before the break through Jake Dunwoody and a Declan John own goal.
Liam Cullen's second goal in as many matches put Swansea ahead for a second time but Stoke turned it around in a thrilling finale.
Dunwoody equalised with four minutes remaining and, in the fifth minute of added time, Jarvis kept his nerve to beat goalkeeper Josh Gould from the spot.
Stoke move up to third, three points behind leaders Manchester United. Swansea are eighth after back-to-back losses.
See: Swansea report | Stoke report
Next fixtures
Swansea: 16 Sep v Reading (A)
Stoke: 16 Sep v Aston Villa (H)