Substitute Danny Ward scored in stoppage time as Huddersfield came from behind to ease their relegation worries with victory over Middlesbrough.
Scott McDonald's drilled finish 12 minutes from time looked to have given the play-off chasing visitors the chance to take the three points.
But Alan Lee scrambled home following a corner and Ward's 25-yard strike secured the win for Huddersfield.
The Terriers climb up to 16th, six points clear of the relegation zone.
Middlesbrough drop out of the Championship play-off places and are now eighth, with only two wins in 2013.
A long time coming
Huddersfield's victory over Middlesbrough was their first at home against Boro since 1984-85.
Huddersfield also went into the game looking to record only their third league win of the year but were quickly on the front foot as Lee Novak shot narrowly wide.
Their best chance of the first half came just before the break as Oliver Norwood headed agonisingly wide from Paul Dixon's cross.
Middlesbrough had been restricted to tame long shots in the first half but an Anthony Gerrard error almost presented them with an opening, McDonald seeing his shot blocked by Jack Hunt.
However the visitors took the lead against the run of play in the 78th minute as McDonald's left-foot effort beat goalkeeper Alex Smithies.
Huddersfield boss Mark Robins introduced Lee soon after and the veteran striker equalised with four minutes remaining, stabbing in from close range.
Ward then completed a dramatic fightback when his superb long-range strike, deep in injury time, sealed victory.
Huddersfield Town boss Mark Robins: "We'd have been disappointed if we hadn't got something from the game, but even if we hadn't, I was happy with the manner of the performance.
"We played some good football on a cabbage patch. It makes you wonder how well they could play on a proper pitch.
"It was definitely our best performance since I arrived."
Middlesbrough manager Tony Mowbray: "We have to improve drastically. The players need to do their jobs. We are being naive and it's happening too often.
"Whatever league you play in, whether it's the Conference or the Champions League, if you can't defend set-pieces you are not going to win matches.
"I wouldn't have been happy with a point but to lose the game is unbelievable.
"We have to analyse it and work out how we put it right."
- 01 Smithies
- 03 Dixon
- 05 P Clarke
- 06 Gerrard (Wallace - 66' )
- 32 Hunt
- 04 Norwood (Lee - 84' )
- 08 Clayton
- 10 Gobern
- 20 Danns
- 09 Novak
- 17 Robinson (Ward - 78' )
- 13 Bennett
- 15 Wallace
- 33 Lynch
- 11 Ward
- 16 Arfield
- 31 Atkinson
- 19 Lee
- 01 Steele
- 04 Friend
- 06 McManus
- 15 Hines
- 07 Leadbitter
- 10 Bailey
- 16 McEachran (Ledesma - 58' Booked )
- 33 Smallwood Booked (Williams - 59' )
- 08 Sa Ameobi
- 27 McDonald
- 30 Miller (Main - 68' )
- 32 Leutwiler
- 14 Williams
- 38 Haroun
- 09 Emnes
- 11 Ledesma
- 19 Carayol
- 23 Main
Live Text Commentary
Full Time The referee blows for the end of the match.90:00 +3:37 Booking
Booking Emmanuel Ledesma receives a yellow card.90:00 +2:55
The offside flag is raised against Scott McDonald. Alex Smithies restarts play with the free kick.90:00 +1:09
Assist on the goal came from Jack Hunt.90:00 +1:09 Goal scored
Goal! - Daniel Ward - Huddersfld 2 - 1 Middlesbro Daniel Ward gets on the score sheet with a goal from outside the penalty area to the bottom right corner of the goal. Huddersfield 2-1 Middlesbrough.89:51
George Friend has shot on goal from just outside the area which goes wide of the right-hand upright.85:45
The assist for the goal came from Peter Clarke.85:45 Goal scored
Goal! - Alan Lee - Huddersfld 1 - 1 Middlesbro Alan Lee gets on the score sheet with a goal from close range low into the middle of the goal. Huddersfield 1-1 Middlesbrough.85:17
Corner taken left-footed by Daniel Ward,83:37
Free kick taken by George Friend.83:37 Substitution
Substitution Oliver Norwood goes off and Alan Lee comes on.83:37
Oscar Gobern challenges Scott McDonald unfairly and gives away a free kick.82:23
The referee blows for offside. Alex Smithies restarts play with the free kick.81:29
Scott McDonald has an effort at goal from just inside the box that misses to the right of the target.79:54
Free kick awarded for an unfair challenge on Jack Hunt by George Friend. Free kick crossed right-footed by Adam Clayton from right channel.77:46 Substitution
Substitution Daniel Ward comes on in place of Theo Robinson.77:05
Assist by Sammy Ameobi.77:05 Goal scored
Goal! - Scott McDonald - Huddersfld 0 - 1 Middlesbro A goal is scored by Scott McDonald from close in low into the middle of the goal. Huddersfield 0-1 Middlesbrough.74:42
Foul by Paul Dixon on Sammy Ameobi, free kick awarded. Free kick crossed left-footed by Emmanuel Ledesma, clearance by Peter Clarke.73:58
Paul Dixon delivers the ball.
Lee Novak concedes a free kick for a foul on Nicky Bailey. Jason Steele takes the free kick.67:05 Substitution
Substitution Curtis Main is brought on as a substitute for Ishmael Miller.65:20 Substitution
Substitution Anthony Gerrard leaves the field to be replaced by Murray Wallace.62:04
Ishmael Miller gives away a free kick for an unfair challenge on Paul Dixon. Direct free kick taken by Paul Dixon.59:46
George Friend takes a shot from deep inside the box clearing the bar.58:07 Substitution
Substitution Rhys Williams joins the action as a substitute, replacing Richard Smallwood.57:47 Substitution
Substitution Josh McEachran goes off and Emmanuel Ledesma comes on.55:27
Grant Leadbitter challenges Paul Dixon unfairly and gives away a free kick. Direct free kick taken by Alex Smithies.51:28
Free kick awarded for a foul by Oliver Norwood on Scott McDonald. Free kick taken by Stephen McManus.49:09
Scott McDonald fouled by Peter Clarke, the ref awards a free kick. Grant Leadbitter restarts play with the free kick.45:01
The referee gets the second half started.45:00 +0:57 Half time
Half Time It is the end of the first-half.42:13
Oliver Norwood takes the direct free kick.42:13 Booking
Booking Richard Smallwood receives a yellow card for unsporting behaviour.42:07
Free kick awarded for a foul by Richard Smallwood on Oliver Norwood.41:17
Theo Robinson takes a shot. Oliver Norwood takes a inswinging corner to the near post, clearance by Sammy Ameobi.39:43
Shot from outside the box by Adam Clayton goes wide right of the target.38:28
Lee Novak has an effort at goal from outside the box which goes wide left of the goal.37:22
Grant Leadbitter takes a long range shot clearing the crossbar.36:48
Ishmael Miller takes a shot. Save by Alex Smithies.35:46
Lee Novak is flagged offside by the assistant referee. Free kick taken by Jason Steele.33:16
Jack Hunt takes a shot. Jason Steele makes a comfortable save.31:30
Unfair challenge on Neil Danns by Nicky Bailey results in a free kick. Oliver Norwood fires a strike on goal direct from the free kick, save by Jason Steele.29:58
Header by Oliver Norwood from deep inside the penalty area misses to the left of the target.29:05
Free kick awarded for a foul by Grant Leadbitter on Oscar Gobern. Peter Clarke takes the free kick.27:43
Unfair challenge on Seb Hines by Theo Robinson results in a free kick. Free kick taken by Stephen McManus.27:05
The ball is sent over by Grant Leadbitter, Headed effort from deep inside the penalty area by Seb Hines goes harmlessly over the crossbar.26:35
Corner taken right-footed by Grant Leadbitter to the near post, Adam Clayton manages to make a clearance.24:25
Outswinging corner taken right-footed by Grant Leadbitter from the right by-line to the near post, clearance by Adam Clayton.23:41
Foul by Adam Clayton on Grant Leadbitter, free kick awarded. George Friend takes the direct free kick.22:40
Ishmael Miller gives away a free kick for an unfair challenge on Paul Dixon. Oscar Gobern takes the free kick.22:10
Free kick awarded for an unfair challenge on Paul Dixon by Sammy Ameobi. Free kick taken by Paul Dixon.15:22
Oliver Norwood takes the outswinging corner, Seb Hines manages to make a clearance.11:22
Neil Danns takes a shot. Lee Novak gets a block in.10:37
Inswinging corner taken from the left by-line by Oliver Norwood, Seb Hines manages to make a clearance.8:43
Paul Dixon produces a left-footed shot from outside the penalty area and misses left.7:17
Unfair challenge on Nicky Bailey by Neil Danns results in a free kick. Seb Hines takes the free kick.5:05
The offside flag is raised against Theo Robinson. Seb Hines restarts play with the free kick.4:27
Effort from outside the penalty box by Scott McDonald goes wide right of the target.3:45
Theo Robinson is flagged offside by the assistant referee. Direct free kick taken by Jason Steele.2:42
Neil Danns crosses the ball.1:50
Adam Clayton produces a right-footed shot from just outside the area that goes wide left of the goal.0:18
Lee Novak has an effort at goal from the edge of the area that misses to the right of the target.0:00
The match begins.
Live data and text provided by our data suppliers