Warrington Wolves became the second team to book their place in the Super League play-offs with a dramatic 14-11 win against Castleford Tigers.
Hull FC ensured their place in the final four with a 44-0 pummelling of fifth-placed Catalans Dragons on Thursday, and Warrington took full advantage of that result to move out of the French team's reach and secure a top-four spot.
Joe Westerman got the Wolves on the board after just eight minutes, but Castleford were ahead at half-time courtesy of Denny Solomona's 32nd try of the season and a conversion and penalty from Luke Gale.
Gale split the posts with another penalty to give the Tigers a four-point cushion, but Chris Sandow set Rhys Evans away to level the scores with 20 minutes remaining.
Castleford were on the brink of a win when Gale notched a drop goal in the 78th minute, but Jack Hughes touched down at the death to secure the two points for Warrington.
The Tigers' hopes of making are now all but over, while Warrington will focus their sole attention on next weekend's Challenge Cup final against Hull.
Leeds Rhinos maintained their 100 per cent record in the Qualifiers with a 42-28 victory over London Broncos.
A Tom Briscoe hat-trick and 14 points from Liam Sutcliffe proved key to the Rhinos' win as the Broncos ran in five tries of their own.