MICHAL HELIK’S stoppage-time strike earned Barnsley a dramatic derby victory.
A scrappy game was three minutes over the 90 when the Polish defender poked home his second goal of the game from close range.
Helik had cancelled out Rarmani Edmonds-Green’s opener for Huddersfield with a 21st-minute equaliser.
A scrappy match had looked to be drifting towards a draw as both sides struggled to create clear-cut chances.
Barnsley, aiming to bounce back from their 2-0 defeat at Swansea, made one change, with left-wing-back Callum Styles returning from suspension to replace Clarke Oduor, who dropped to the bench.
Huddersfield, whose boss Carlos Corberan signed a new contract through to 2024 on Christmas Eve, fielded the same starting side which beat Watford 2-0 at home in the previous match.
Both sides went into the clash having taken 28 points from 20 games this season.
Barnsley began in lively style, and Cauley Woodrow brought two good close-range saves from Ryan Schofield, first with a header, then a shot, in the opening five minutes.
But Huddersfield grew into the game, and after Lewis O’Brien’s cross narrowly evaded the stretching Fraizer Campbell, Edmonds-Green gave the visitors a 13th-minute lead with a close-range shot after a well-worked short corner routine.
After a neat through ball from Jonathan Hogg split the home defence, Campbell slid a low shot just wide, but by the 21st minute, Barnsley were level thanks to Helik.
The Polish defender headed his second goal of the season from close in after Huddersfield failed to deal with a corner.
Alex Mowatt and Woodrow both had shots blocked either side of an off-target attempt from Huddersfield’s Juninho Bucuna as the sides reached half-time on level terms.
Barnsley had an escape early in the second half when Bacuna put in a dangerous swirling cross from the right, but neither Edmonds-Green nor Naby Saar could make contact.
Then Hogg had a shot blocked as Huddersfield continued to push forward.
Victor Adeboyejo, on as a substitute for Dominik Frieser, shot wide from outside the area, then produced an acrobatic overhead kick, but was thwarted by a great save from Schofield.
With wind and rain doing little to help the fluency of the game, Helik settled it when he pounced to finish off from Mads Andersen’s header.
Barnsley: Walton; Sollbauer, Helik, Andersen; Brittain, Mowatt (Palmer, 86), James (Kane, 72), Styles; Frieser (Adeboyejo, 60), Woodrow (Miller, 86), Chaplin (Thomas, 72). Subs not used: Moon, Oduor, Schmidt, Collins.
Huddersfield: Schofield, Pipa, Edmonds-Green, Saar, Toffolo, Hogg, Eiting (Pritchard, 70), O'Brien, Bacuna, Mbenza (Diakhaby, 80), Campbbell. Subs not used: Vallejo, Duhaney, Harratt, Crichlow, Brown, Rowe, Hamer.
Referee; David Webb.