Burnley were knocked off the top of the Championship table after losing for the first time in 12 league games at Huddersfield.
Oliver Norwood put Huddersfield ahead with a stunning long-range volley before James Vaughan added a second with a penalty.
Danny Ings pulled one back when he ran through one-on-one with the goalkeeper.
Michael Duff was sent off late on as the Clarets suffered only their second league defeat of the season.
They move to second spot following Leicester City's win over Millwall.
Burnley arrived at the John Smith's Stadium as the side in form, having won eight and drawn four of their last 12 games.
However, it was the home team who dominated the early stages.
All good things come to an end
- The 12-match unbeaten sequence of eight wins and four draws is Burnley's longest since a run of 15 spanning two seasons (20 March 1999 to 28 August 1999)
Vaughan's swirling shot from 30 yards had Burnley keeper Tom Heaton diving at full stretch, before former Claret Martin Paterson struck the post with a header from Paul Dixon's cross.
Ings fired over midway through the first half but it was the Terriers who had the best chance of the first 45 minutes when Vaughan fired over from little more than six yards.
Sam Vokes shot marginally wide soon after the break but just as Burnley seemed to be improving, Huddersfield took the lead in stunning fashion.
Adam Hammill lofted a corner away from the box and towards Norwood about 30 yards from goal and the midfielder struck a first-time dipping effort that beat Heaton at his near post.
Moments later, Huddersfield doubled their advantage as Duff was adjudged to have handled the ball inside the area and Vaughan stepped up to coolly place the penalty beyond Heaton.
Burnley responded by going on the attack but they were denied what seemed a certain goal when the ball fell for an unmarked Ings in the middle of the area and his powerful strike was thumped away by Huddersfield goalkeeper Alex Smithies.
However, they ensured a tense finish to the game when Ings raced through on goal to beat Smithies with a low shot.
But Burnley were reduced to 10 men late on when Duff was dismissed for a second yellow for a foul on Vaughan and Huddersfield closed out the remainder of the game.
Huddersfield manager Mark Robins:
"I am really proud of the lads and even if we hadn't taken the three points I would have been delighted.
"In the second half, like the top teams do, they came at us and there are some good players there.
"In Sam Vokes and Danny Ings they've got two lively strikers who only need a sniff."
Burnley manager Sean Dyche:
"I believe in referees but it's frustrating for us and frustrating for the fans.
"I am always truthful about my team and we were second best in the first half.
"Huddersfield raised their game but that's what happens when you're at the top."
- 01 Smithies
- 12 Hammill (Woods - 87' )
- 03 Dixon
- 33 Lynch
- 39 Gerrard
- 27 Smith
- 04 Norwood
- 06 Hogg
- 09 Vaughan
- 17 Paterson (Ward - 74' )
- 08 Clayton Booked
- 02 Woods
- 07 Scannell
- 10 Gobern
- 11 Ward
- 13 Bennett
- 15 Wallace
- 38 Holmes
- 01 Heaton
- 02 Trippier
- 06 Mee
- 14 Jones
- 04 Duff Dismissed after an earlier booking
- 05 Shackell
- 37 Arfield (Treacy - 88' )
- 15 Edgar (Stock - 45' )
- 10 Ings
- 09 Vokes Booked
- 19 Kightly (Stanislas - 45' )
- 03 Lafferty
- 11 Stanislas
- 12 Cisak
- 22 Stock
- 26 Treacy
- 28 Long
- 33 Hewitt
Ref: Eddie Ilderton