Castleford (18) 44
Tries: Huby 2, Chase 2, Snitch, McGoldrick, Dixon Goals: Westerman 6, Dixon 2
Huddersfield (14) 18
Tries: Cudjoe, Lolesi, Lunt 2 Goals: B Hodgson
Huby's first try got Castleford on the scoreboard when they trailed 10-0
Castleford climbed into the Super League play-off places with victory over Huddersfield at The Jungle.
Joe Westerman's boot was the difference at the break as Cas led 18-14 after both sides had run in three tries.
But two tries in three minutes at the start of the second half from Ryan McGoldrick and Craig Huby's second of the game pulled the Tigers clear.
And late converted efforts from Kirk Dixon and Rangi Chase, also his second of the contest, wrapped it up.
It was Castleford's fourth successive win and came at the end of a week when the club was fined £40,000 - a penalty they have appealed against - after their fans directed homophobic chants at Crusaders wing Gareth Thomas.
But the game did not get off to a great start for the Tigers as Huddersfield raced into a 10-0 lead thanks to tries from Leroy Cudjoe and Jamahl Lolesi.
They hit back through Huby and Rangi Chase, and after Shaun Lunt had put the Giants back in front, Steve Snitch ensured it was the home side that went in at half time with their noses in front.
And they never looked back in the second half from the moment McGoldrick jumped highest to grab Chase's high kick under the crossbar, with Huby twisting his way over from close range soon after.
Dean Widders then put Dixon over for an easy try and although Lunt replied for the Giants it was too little too late as Chase intercepted a loose Luke Robinson pass to run in and put the gloss on an impressive win.
Castleford coach Terry Matterson:
"We were outstanding defensively and we have been for long periods of games over the last seven weeks, we held it together for longer today.
"I really liked the way we played with the ball. The fans want to see flowing rugby but if you do that you know you will make mistakes and you have to be prepared to defend your line, and we did it today.
"Under those circumstances, being 10-0 down against a good side, that was a great performance."
Huddersfield coach Nathan Brown:
"Their kicking game was first class and ours was poor and made it difficult for us.
"In the second half we had a hurricane behind us and our first two kicks were midfield bombs, and that was the give away to me that we didn't think we had a chance of winning.
"We should have caught the ball and kicked it down there on tackle three and tried to build pressure, but we chased points from the start of the half when all we had to do was kick it down there and work hard to get back into the contest."
Castleford: McGoldrick, Dixon, Ferres, Shenton, Wainwright, Widders, Chase, Huby, Hudson, Jackson, Snitch, Clayton, Westerman.
Replacements: Sargent, Milner, Thompson, Walker.
Huddersfield: B. Hodgson, Cudjoe, Lolesi, Lawrence, D. Hodgson, Brown, Robinson, D. Griffin, Drew, Mason, Gilmour, Finnigan, Lunt.
Replacements: Brough, Patrick, Faiumu, Horne.
Referee: T Alibert (Toulouse).