Substitute Fernando Llorente scored twice in stoppage time as Swansea recorded their first win since the opening day of the season in a remarkable encounter with Crystal Palace.
The Liberty Stadium witnessed an astonishing seven goals scored after the break and four in 11 second-half minutes.
Swansea were 3-1 ahead before Palace produced an extraordinary fightback to take a 4-3 lead.
It seemed as if the visitors would end their five-match losing run in the league, but then up popped substitute Llorente with two late goals as the ground erupted on the full-time whistle.
Regarding entertainment value, this match gets top marks. But look past the scoreline and it was a game featuring truly atrocious defending.
Palace took the lead in the 19th minute when Wilfried Zaha easily wriggled away from Neil Taylor and Federico Fernandez before slotting a low angled shot past Lukasz Fabianski.
The Swans hit back in the 36th minute through Iceland’s Gylfi Sigurdsson, when he whipped his 20-yard free-kick over the wall and inside keeper Wayne Hennessey’s far post.
It was 1-1 at half time and midway through the second period there was little to suggest of what was about to unfold.
Then the match exploded.
Dutch midfielder Leroy Fer scored twice at the far post in the space of two minutes. His first was following up from Llorente’s blocked header – the Spaniard’s first touch of the match – before he poked in after Sigurdsson’s free-kick was flicked on by Jordi Amat.
A 3-1 lead became 3-2 in the 75th minute when the Swans failed to clear their six-yard area and James Tomkins poked in.