Castleford Tigers have overturned a 26-16 half-time deficit to beat Widnes Vikings 28-26.
James Clare scored the first try for the hosts with Jamie Ellis kicking the extras before the kicker then converted Richard Owen's try in the 13th.
Widnes responded with a try of their own through Paddy Flynn and the conversion by Patrick Ah Van pulled them to within a converted try of Castleford.
Rhys Hanbury went over in the corner to put the a kick behind although this one went unconverted.
Three minutes later Jon Clarke scored the third Widnes try and the conversion by Ah Van put his side four up.
Cameron Phelps then added another try for Widnes that was converted before Richard Owen pulled one back for the hosts.
However, Ah Van went over himself to put Widnes 26-16 up at the break. Then came the Tigers comeback.
Jordan Thompson scored 19 minutes into the second half and with Ellis's conversion the deficit was just four.
Then Adam Milner went over for a try and Ellis held his nerve to kick the hosts two points clear.