Widnes Vikings produced a performance of true grit and determination to pull off a second win of the season at the DW Stadium and dent Wigan Warriors' Grand Final hopes.
The Vikings' 18-12 win in March took them to the top of First Utility Super League and this tense 8-6 triumph was enough to prevent Wigan drawing level with Hull FC at the summit.
Australian winger Corey Thompson scored two tries, first by catching Kevin Brown's kick and wrong-footing Lewis Tierney and then thanks to a spectacular dive, taking his total for his first season in England to 23 - but the match will be remembered for Widnes' stoical defence in the face of a 20-8 penalty count against them.
The Vikings at times looked determined to press the self-destruct button as referee Phil Bentham placed them on three team warnings and sent two players, Jack Buchanan and Connor Farrell, to the sin bin after Liam Farrell had pulled a try back.
Even down to 11 men, however, Widnes' determination never wavered as they somehow hung on for a memorable victory.
Wigan could have shared the points had they gone for a goal from a penalty awarded in front of the posts two minutes from the end but they went for glory and came up short, perhaps deservedly so after lacking creativity for much of the game.
Widnes coach Denis Betts described the win as one of the best of his career.
"To go down to 11 and come out other side of that penalty count, it's pretty high up," said Betts, who spent 12 seasons as a player with Wigan.
"It's hard not to be emotional coming here, the place that made me into what I was as a rugby player, and we've come here and won twice this year.
"I'm not sure if they were still playing, they would score. That shows how fantastic the character in the team is.
"It was a tough game for us, our discipline could have been better but we fought ourselves to a standstill."
Wigan coach Shaun Wane admitted he was tempted to kick for goal at the end, saying: "Yes, we had a discussion. If we score a try, it's the best decision ever, when we don't, it's the wrong one.
"The players are hurting badly. I've told them to get ready and we'll sort it out tomorrow morning.
"I'm very angry and disappointed. We lacked a bit of composure and our game management was off in the final third.
"Widnes came with a way to play and were allowed to do it, fair play to them. They had nothing to play for but they turned up and played a real good game.
"We had everything to play for but we started the game soft. They were smart in contact and tried to disrupt our attack and they did it successfully.
"When we played the way we planned, we scored through Liam Farrell."