Liam Finn's last-gasp drop goal gave Castleford a thrilling 17-16 win over Warrington which puts clear daylight between the teams in the race for the top four in Super League.
Warrington hammered Castleford 44-6 less than three weeks ago but have suffered two painful defeats since then and are now six points behind the fourth-placed Tigers with five Super 8s games left.
Castleford produced a solid goal-line defence and clinical finishing to establish a 10-0 lead in the first half, with Justin Carney's 16th try of the season followed by Michael Shenton's arcing finish.
SIGN UP NOW
Want to become a GMS writer? Sign up now and submit a 250 word test article: http://gms.to/haveyoursay4
Article continues below
Warrington had gone close on a number of occasions and their pressure finally told when Richie Myler touched down and Chris Sandow added the extras.
Luke Gale slotted a penalty on the stroke of half-time to add to his earlier conversion from out wide and Carney scored his second try just after the restart to make it 16-6.
Article continues below
The Tigers gifted Myler a try and Warrington looked to have earned a share of the spoils when Sandow converted Kevin Penny's score, only for Finn's left-footed effort to win it for Castleford.
Sandow endured a miserable start to his Warrington career at Leeds last week but he showed glimpses of what he is capable of, particularly with his kicking game.
The Australian half-back brought the game at the Mend-A-Hose Jungle to life with a classy 40/20 and, after Ben Harrison was held up over the line, he earned his side a repeat set with a neat kick over the top.
But Warrington did not turn territory into points and found themselves behind after 16 minutes when dummy runners created the space for Gale to find Ben Roberts, who gave Carney a simple finish in the corner.
Another Sandow kick was eventually touched down by Penny but the video referees overturned on-field official Ben Thaler's try decision and ruled a knock-on by Ryan Atkins.
Castleford went straight down the other end and scored their second try through Shenton after a good offload by Oliver Holmes.
Rhys Evans had a try ruled out for a forward pass but Warrington finally got on the board with seven minutes left in the half, Myler taking Ashton Sims' flat pass at pace before squeezing over.
Carney tried to get the Tigers going again with a rampaging run and when Chris Hill was penalised for interference, Gale kicked the goal from 30 metres out.
And the hosts strengthened their position just minutes after the restart when Carney swatted Evans aside to finish off a fine team move which saw Shenton rise highest to palm Finn's cross-field kick into the hands of Holmes.
Gale hit the post from out wide and the Tigers were forced on the defensive but Warrington were lacking ideas and appeared to have conceded a game-clinching try when Ashley Gibson went over in the corner, only for the officials to spot a foot in touch.
Warrington were then given a lifeline 10 minutes from time as Finn kicked straight into the hands of Myler and could only watch on as the scrum-half went 90 metres to score.
Sandow missed the kick and after Gale put a drop-goal attempt just wide, the drama continued as Penny coasted over in the corner and Sandow goaled from out wide to tie the game up heading into the final three minutes.
But Finn was the hero for Castleford, keeping his cool to slot his drop goal between the posts and send the home fans wild with joy.