Dundee fought back from two goals down to stun Kilmarnock in the Scottish Premiership and exact revenge with a complete reversal of their 3-2 defeat by the same opponent a month ago.
Kilmarnock scored three times in the final 10 minutes to break Dundee's hearts at Dens Park at the start of October, and on the same ground the two sides produced another frantic contest, but this time it was Tony Docherty's side who came up with the stoppage-time winner.
Ziyad Larkeche steered the ball into the bottom corner after a brilliant surging run from Josh Mulligan to spark wild scenes among the home fans.
Kilmarnock, meanwhile, were left shattered after hauling themselves into a two-goal lead only to cede the initiative.
The opener came on 24 minutes thanks to a mistake from Dundee goalkeeper Jon McCracken, who dropped the ball at the feet of Bruce Anderson, who punished him from five yards.
Matty Kennedy headed the visitors into a 2-0 lead after an excellent cross from Danny Armstrong, but Dundee hit back just a minute later.
Oluwaseun Adewumi chipped a cross over Joe Wright at the near post and Seb Palmer-Houlden stooped to head into the bottom corner.
It proved a crucial moment before the break which laid the platform for Dundee's comeback.
Jordan McGhee ensured his introduction at half-time was the right call from Docherty, as he nodded into the top corner after another Adewumi cross deflected into his path.
Both sides threw caution to the wind in a frenetic end to the match but it was another of Docherty's half-time changes, Mulligan, who came up with a huge moment.
The midfielder burst into the box and laid on the winning moment for Larkeche, which puts Dundee into the top six and above Kilmarnock on goal difference.