Huddersfield 34 (12)
Tries: Drew, Brown, Raleigh, Gannon, Nero, Aspinwall
Goals: De Vere 4, Reilly
Castleford 10 (10)
Tries: A Fletcher, Bird
Goals: Brough
Huddersfield put themselves back in the frame for a Super League play-off spot with a six-try win over Castleford.
Brad Drew, Kevin Brown, Andy Raleigh, Jim Gannon, Chris Nero and Martin Aspinwall all crossed for the Giants, who move up to seventh in the table.
The Tigers had Danny Brough sent off late in the game after the half-back reacted angrily to being sin-binned.
Referee Jamie Leahy, controlling his first Super League match, upset both sides with some of his decisions.
Huddersfield coach Jon Sharp
"I thought we played as well as we have played all year. "We have had problems with lapses of concentration at times and have paid for it but today we played for the full 80 minutes and it brought its rewards.
"We spoke about having some form and confidence going into next week (Challenge Cup semi-final against Leeds) and you only get that by playing well."
Castleford coach Terry Matterson
"It was like a wrestling match out there - we want to play footie. "There was some ill-discipline at times but the ruck was absolutely disgraceful.
"I'm very frustrated but credit to the opposition and we didn't play smart when we had the ball."
Huddersfield: Reilly, Aspinwall, Brown, De Vere, Donlan, Thorman, Paul, Jackson, Drew, Gannon, Nero, Jones, Wild.
Replacements: Crabtree, Snitch, Raleigh, Mason.
Castleford: Platt, A. Fletcher, Shenton, Viane, Dyer, McGoldrick, Brough, Sculthorpe, Henderson, Nutley, Ward, R. Fletcher, Roarty.
Replacements: Fa'aoso, Huby, Manu, Bird.
Referee: Jamie Leahy (Dewsbury).