Matt Dawson's two tries helped St Helens fight back to win 28-22 and end Castleford's unbeaten Super League run at Langtree Park.
The visitors led 8-0 and 14-6 in a thrill-a-minute first half but key injuries to stand-off Ben Roberts after 23 minutes and prop Grant Millington on the hour mark proved crucial and left the Tigers still looking for a first away win over St Helens since 1992.
Centre Dawson - who stood in for the injured Mark Percival - scored two of Saints' five tries in the 28-22 victory as they made it three wins from their opening four games closing the gap on leaders Warrington to just two points.
Saints dominated the first half, with hooker James Roby causing havoc around the ruck while skipper Jon Wilkin and scrum-half Luke Walsh forced six goal-line drop-outs between them, but the Tigers tackled furiously to keep themselves in the game and looked threatening on the counter-attack.
The visitors actually opened the scoring from their first meaningful attack on nine minutes, Millington forcing his way over from close range, and skipper Luke Gale kicked them into an 8-0 lead with a 15th-minute penalty.
Saints' Wilkin and prop Alex Walmsley were both held up over the line before left winger Adam Swift took advantage of a ricochet to touch down at the corner for his side's first try. Smart work from centre Ben Crooks then got second rower Mike McMeeken racing away for Castleford's second try on 22 minutes and Gale's third goal re-established an eight-point lead.
Possession eventually took its toll, however, and Saints went in front with the aid of two tries in a five-minute spell just before half-time. Stand-off Jordan Turner's nicely timed pass got second rower Atelea Vea striding through a gap in the Tigers wall and Dawson found space out wide to touch down.
Trailing 16-14 at the break, Castleford ought to have made more of a clean break by full-back Luke Dorn but they drew level with a Crooks penalty nine minutes into the second half. That was as good as it got for the Yorkshiremen, however, as they continued to spend most of the game pinned inside their own half.
Turner worked loose forward Louie McCarthy-Scarsbrook over for a fourth try on the hour and, after Wilkin and Walmsley had again been turned onto their backs over the line, the skipper fired out a long pass to get Dawson over for his second, with Walsh taking his goal tally to four successes from five attempts.
Hooker Adam Milner forced his way over for a third Castleford try seven minutes from the end and Gale's fourth goal cut the gap to six points but Saints comfortably hung on for a deserved victory.