Curtis Main's late header helped Middlesbrough pick up their first points and victory of 2013 against Leeds United at the Riverside.
Main looped the ball past Paddy Kenny from Ishmael Miller's curling cross with eight minutes remaining.
However the goalscorer was sent off shortly after by referee Keith Stroud for a second bookable offence.
Ross McCormack and Habib Habibou had Leeds's best chances but the home defence held firm.
The victory was Boro's first against Leeds on home turf since August 1992, and ended a run of five straight defeats in the Championship.
Tony Mowbray's side are now four points clear of Brighton in sixth place, while Leeds are 11th, eight points behind.
For older supporters of the two clubs, these meetings of North Riding versus West Riding are 'Yorkshire derbies' going back to the old boundaries, and from the off it was clear there was a bit of passion rolling around the Riverside.
The Teessiders were arguably the more dominant in possession during the first period, with the midfield of Rhys Williams, Grant Leadbitter and Josh McEachran in control, although the visitors defended well and enjoyed the better chances.
Main flashed a volley onto the bar early on for Boro before Ross McCormack set his sights with a brace of shots that brought Jason Steele into action.
It's been a while
Middlesbrough's victory was their first over Leeds on home turf in 11 attempts since they beat the then league champions 4-1 at Ayresome Park in August 1992.
McCormack was the danger man again just before the half hour when he capitalised on slip by Steele as the ball bounced invitingly in the Boro penalty area, but Jonathan Woodgate was perfectly placed to clear off the line.
Boro might have ended the half on top had Faris Haroun made the most of McEachran's delicious pass behind the defence, but Paddy Kenny spread himself well on the edge of the box to ensure honours even at the break.
Mowbray's outfit continued their pressure after the interval, with Lee Peltier alert to deny Mustapha Carayol a shooting chance, but the Boro boss could sense the growing frustration around the Riverside as McCormack thudded a free-kick into Steele's chest.
Woodgate was withdrawn with 25 minutes remaining to a fine reception with Andy Halliday introduced, and the Scottish full-back was involved in the move that brought a free-kick that Leadbitter curled just wide.
Kenny was at his best to twice deny Leadbitter as Boro poured forward, but Leeds remained dangerous on the counter and only a last-ditch tackle from George Friend stopped Paul Green from firing in.
But as time ticked down, Boro found the breakthrough their midfield dominance deserved when substitute Miller set off down the left, curled the ball to the back post and Main's header looped over Kenny and in.
Main was dismissed moments later for a second bookable offence much to the home fans' ire, but Steele tipped Habibou's header over in injury time to restore the good feeling among the home support, and end the visitors' remarkable run on Teesside.
Middlesbrough boss Tony Mowbray:
"It's nice to get a win, it's been a while for us in the league and we need to keep the points ticking along.
"Other games can be more of a football game but Leeds put you under pressure, don't allow you to keep the ball and it becomes more of a physical battle. But we came out on top of that.
"Curtis is a young boy who is starting his career off. He came to us as a free transfer from Darlington and some of the things he can do are breathtaking at times."
- 01 Steele
- 03 Bikey Booked
- 04 Friend
- 14 Williams
- 21 Parnaby
- 39 Woodgate (Halliday - 66' )
- 07 Leadbitter
- 16 McEachran (Miller - 74' )
- 38 Haroun
- 19 Carayol Booked (Bailey - 88' )
- 23 Main Dismissed after an earlier booking
- 32 Leutwiler
- 10 Bailey
- 18 Halliday
- 33 Smallwood
- 11 Ledesma
- 17 Jutkiewicz
- 30 Miller
- 01 Kenny
- 02 Peltier Booked
- 04 Lees
- 15 Warnock
- 07 Green (Diouf - 84' )
- 11 Varney
- 17 Brown (Habibou - 89' )
- 19 Norris (Austin - 84' )
- 25 Byram
- 09 Morison
- 44 McCormack
- 12 Ashdown
- 05 Pearce
- 08 Austin
- 14 White
- 18 Tonge
- 21 Diouf
- 22 Habibou