Bristol City lost for the fifth game in succession as Sean Scannell's first-half goal gave Huddersfield victory.
Former Crystal Palace winger Scannell ran on to Lee Novak's cut-back to smash home from six yards just before the break.
City almost snatched an equaliser deep into added time, but Huddersfield keeper Alex Smithies saved superbly from Stephen McManus.
Bristol City's last five results
3 Nov: Huddersfield Town 1-0 Bristol City
27 Oct: Bristol City 1-2 Hull City
23 Oct: Bristol City 3-4 Burnley
20 Oct: Bolton Wanderers 3-2 Bristol City
6 Oct: Leicester City 2-0 Bristol City
Huddersfield move up to seventh, while City remain in the relegation zone.
The home side were forced into making a number of changes for the game, with the suspended Jack Hunt and injured strike duo Jermaine Beckford and James Vaughan all out.
Scannell was one of the players to come into the side and he brought a quiet first half to life with a goal in the 43rd minute.
Novak cut the ball back from the left wing and Scannell raced in to rifle a shot beyond Dean Gerken from six yards.
The visitors were almost level before the interval as Cole Skuse's half-volley deflected off Peter Clarke, but the ball bounced wide.
Clear-cut chances were relatively few and far between in the second half, with Huddersfield's Adam Hammill shooting just over the bar, while City's Martyn Woolford saw a rising effort go over the goal.
The Robins continued to press and were only denied a dramatic late leveller when Smithies dived at full stretch to keep out McManus's effort.
Huddersfield manager Simon Grayson: "We have played better and not won but we needed to get back to winning ways. One bit of quality has won us the game.
"If our finishing had been more ruthless we wouldn't have been under the pressure we were in the last 10 minutes."
Bristol City manager Derek McInnes: "We've not been finding goals difficult to come by but they were in this game.
"We have not managed to be clinical enough and passed over some good opportunities.
"But the players deserve great credit for never giving up and this gives me great encouragement going forward."
Live Text Commentary
Full Time The referee brings the game to a close.90:00 +3:39
Ryan Taylor takes a shot. Save by Alex Smithies.90:00 +2:21
Free kick awarded for an unfair challenge on Peter Clarke by Sam Baldock. Peter Clarke takes the free kick.90:00 +1:04
Albert Adomah delivers the ball in from the corner.87:50 Substitution
Substitution Anthony Gerrard replaces Sean Scannell.86:05
Anton Robinson concedes a free kick for a foul on Ryan Taylor. Neil Kilkenny restarts play with the free kick.83:00
Daniel Ward challenges Ryan Taylor unfairly and gives away a free kick. Free kick crossed right-footed by Albert Adomah from right channel, clearance made by Paul Dixon. Shot from just outside the box by Martyn Woolford goes over the bar.79:11 Substitution
Substitution Stephen Pearson leaves the field to be replaced by Martyn Woolford.79:11 Substitution
Substitution Oliver Norwood goes off and Anton Robinson comes on.79:11
Free kick awarded for an unfair challenge on Adam Clayton by Ryan Taylor. Direct free kick taken by Paul Dixon.78:07
Foul by Matthew Briggs on Sean Scannell, free kick awarded. Calum Woods takes the free kick.77:17
Corner taken by Oliver Norwood, save by Dean Gerken.75:45
Free kick crossed right-footed by Oliver Norwood from left channel, save by Dean Gerken.75:45 Booking
Booking Liam Fontaine booked.75:38
Free kick awarded for an unfair challenge on Lee Novak by Liam Fontaine.74:46 Substitution
Substitution Ryan Taylor comes on in place of Jon Stead.72:00 Substitution
Substitution Daniel Ward joins the action as a substitute, replacing Adam Hammill.68:44
Adam Hammill produces a left-footed shot from inside the area that clears the bar.67:09
Adam Hammill sends in a cross.66:07
Header by Stephen Pearson from deep inside the penalty area misses to the left of the target.
Foul by Neil Kilkenny on Adam Clayton, free kick awarded. Oliver Norwood takes the direct free kick.63:35 Substitution
Substitution Neil Kilkenny replaces Marvin Elliott.61:39
Marvin Elliott takes a shot. Alex Smithies makes a save.59:33
Adam Clayton takes a shot. Save by Dean Gerken.58:40
The ball is crossed by Richard Foster.57:00
Adam Hammill produces a left-footed shot from just outside the box that goes wide left of the goal.56:01
Headed effort on goal by Marvin Elliott from inside the penalty box misses to the right of the goal.53:15
Effort from just outside the box by Adam Clayton goes over the bar.52:14
Effort from inside the area by Jon Stead misses to the left of the target.49:19
Free kick awarded for an unfair challenge on Albert Adomah by Paul Dixon. Richard Foster takes the free kick.49:00
The assistant referee flags for offside against Lee Novak. Free kick taken by Dean Gerken.48:06
Calum Woods takes a shot. Save made by Dean Gerken. Adam Hammill takes the outswinging corner, Marvin Elliott makes a clearance.47:03
Keith Southern fouled by Jon Stead, the ref awards a free kick. Peter Clarke restarts play with the free kick.46:00
Foul by Albert Adomah on Joel Lynch, free kick awarded. Alex Smithies restarts play with the free kick.45:01
The second half has started.45:00 +2:07 Half time
Half Time The first half comes to an end.44:48
Cole Skuse takes a shot. Peter Clarke gets a block in. Corner taken by Albert Adomah from the left by-line, clearance made by Peter Clarke.42:17
Assist by Lee Novak.42:17 Goal scored
Goal! - Sean Scannell - Huddersfld 1 - 0 Bristol C Sean Scannell finds the net with a goal from inside the six-yard box to the bottom left corner of the goal. Huddersfield 1-0 Bristol City.40:11
The ball is crossed by Adam Hammill.37:23
Free kick awarded for an unfair challenge on Stephen McManus by Lee Novak. Free kick taken by Dean Gerken.36:26
Unfair challenge on Paul Dixon by Jon Stead results in a free kick. Alex Smithies takes the direct free kick.33:58
Corner taken right-footed by Adam Hammill, Matthew Briggs manages to make a clearance.33:04
The ball is crossed by Cole Skuse.32:04 Booking
Booking Albert Adomah is cautioned by the ref for unsporting behaviour.31:52
Albert Adomah gives away a free kick for an unfair challenge on Peter Clarke. Peter Clarke takes the direct free kick.30:03
Jon Stead has shot on goal from just outside the penalty box which goes wide of the right-hand upright.28:46
Foul by Cole Skuse on Oliver Norwood, free kick awarded. Free kick taken by Joel Lynch.27:19 Booking
Booking Calum Woods is cautioned by the ref for unsporting behaviour.27:12
Unfair challenge on Jon Stead by Calum Woods results in a free kick. Free kick taken by Matthew Briggs.24:30
A cross is delivered by Jon Stead.23:25
Oliver Norwood concedes a free kick for a foul on Marvin Elliott. Matthew Briggs takes the direct free kick.20:55
Headed effort from inside the penalty area by Jon Stead misses to the right of the target.18:32
Liam Fontaine challenges Adam Hammill unfairly and gives away a free kick. Keith Southern takes the free kick.16:19
The referee gives a free kick against Albert Adomah for handball. Oliver Norwood fires a strike on goal direct from the free kick.8:11
Foul by Oliver Norwood on Jon Stead, free kick awarded. Direct effort from the free kick comes in from Albert Adomah.0:00
The referee starts the match.
Live data and text provided by our data suppliers