Jy Hitchcox's hat-trick added more misery to Huddersfield Giants' season as Castleford Tigers ran out 38-34 winners at the Jungle.
The Tigers now climb up to seventh with the win, while the Giants have now lost eight of their opening nine matches in First Utility Super League.
Leroy Cudjoe's converted try saw the visitors 6-0 ahead after eight minutes before Mike McMeeken rose highest to gather Luke Gale's kick in the 16th minute.
McMeeken turned provider as he showed great hands to set up Greg Minikin to go over as the Castleford got their nose in front but Jermaine McGillvary, on his 200th appearance for the Giants, scored in the corner.
A Hitchcox score ensured the Tigers led 16-12 at the break, McGillvary grabbed his second try of the match edge, before McMeeken powered over to regain Castleford's advantage.
Tries from Cudjoe and Sam Rapira looked to have given Huddersfield a stronghold in the match but converted late scores from Hitchcox and Jake Webster gave the hosts a 38-30 lead.
McGillvary completed his hat-trick late on but Castleford held on.
Paul Anderson admits Huddersfield's focus has switched from finishing in the top four to avoiding a scrap for survival after an eighth defeat of the season.
Asked if Huddersfield's goal for the season had changed he said: "I would think that's pretty clear.
"Our focus has to be on dusting ourselves down and trying to make sure we win the next game.
"We know this group is capable of doing some good things. It's just a case of building energy because we're robbing ourselves of it at the moment.
"The positive was that we scored 30-odd points but the negative was clearly the amount they got.
"When we got to certain points of the field and executed stuff we looked alright and scored some good tries, but we let some soft ones in and our ball control isn't great at the moment."
Castleford were missing a host of key men but fringe players impressed in their absence.
"It was a crazy game," said Castleford head coach Daryl Powell. "It was a typical third game of Easter.
"We've generally been pretty good in this period but I haven't been able to rotate like normal. We have 10 guys out and we lost Grant Millington early on, and it's made it hard for us.
"It's a massive win. I said to (assistant) Danny Orr before the game whether we'd have enough to beat them but we did, just about.
"There's a couple of clubs who've responded well to new coaches such as Wakefield and Hull KR - and the competition is real tight, so it's an important win."