Middlesbrough claimed their first home win since mid-December as first-half goals from Duncan Watmore and Ashley Fletcher secured a 2-1 comeback win over Huddersfield.
An Isaac Mbenza free-kick fired the visitors into an early lead, but a superb solo goal from Watmore and a penalty from Fletcher ensured Boro were ahead at the interval.
Paddy McNair's late red card ensured Neil Warnock's side endured a nervy finale, but the 10 men held on to close to within three points of the play-off positions.
Defeat for Huddersfield means they have now gone nine games without victory in all competitions and are in serious trouble towards the foot of the Sky Bet Championship table.
The Terriers have not won in 2021, but they were bright and incisive from the off and claimed a deserved lead after just nine minutes.
Marc Bola fouled Pipa close to the edge of the area, but there was still plenty to do as Mbenza stepped up to fire in the resulting free-kick.
The Belgian scored in Saturday's home defeat to Wycombe and made it two goals in two games as he curled a superb strike over the Middlesbrough wall and into the left-hand corner.
Mbenza almost added a second four minutes later as he broke into the right-hand side of the box before dragging a low strike across the face of goal but - having started extremely sluggishly - Middlesbrough gradually got themselves back into the game.
Grant Hall should have done better when he directed a free header straight at Ryan Schofield midway through the first half, but the Teessiders levelled shortly after the half-hour mark thanks to some fine skill from Watmore.
The winger wriggled past Lewis O'Brien and Naby Sarr after cutting in from the right flank and opened up his body before curling a superb left-footed finish into the bottom corner.
Hall had a headed effort chalked out for offside as Middlesbrough began to dominate, but the hosts were not to be denied for long and claimed the lead from the penalty spot on the stroke of half-time.
Darnell Fisher got to Neeskens Kebano's low cross ahead of O'Brien and was tripped by the Huddersfield full-back.
Fletcher, who was making his first start since September, stepped up and squeezed his spot-kick past Schofield's right hand.
Whereas the first half was an action-packed affair, the second period was much cagier with Boro largely content to sit on their lead.
The away side enjoyed plenty of possession after the interval, although they struggled to carve out clear-cut chances against their opponents' five-man defence.
They came close in the 74th minute, but while Kieran Phillips met Aaron Rowe's cross with a glanced front-post header, the ball spun across the face of the Middlesbrough goal-line before it was hacked clear.
Fraizer Campbell sliced a shot wide as Huddersfield threatened again with 12 minutes left and Boro were forced to play the final nine minutes with 10 men after McNair was dismissed for a studs-up challenge on Juninho Bacuna.
Huddersfield almost made their man advantage count with one minute left, but while Phillips' low shot beat Marcus Bettinelli, the ball rebounded to safety off the inside of the post as Middlesbrough sealed maximum points.
What the managers said...
Middlesbrough's Neil Warnock: "When I look at the sending off, I can't believe it. I said to the referee when he came off, 'You didn't give it, did you?' And he said, 'No', the linesman gave it. The linesman's 30 yards away and he hasn't got an angle to be able to see what's going on. How can he give it? It's scandalous really.
"If the referee had given it, fair enough because he's there. But the linesman? He can't be giving it. We'll definitely appeal it tomorrow morning. Paddy is distraught. He said, 'Gaffer - there's no way it was a sending off'. He hasn't caught Bacuna at all. I thought he might have caught him because I couldn't see initially from where I was, but when you watch the video back, Bacuna is trying to flick the ball way, Paddy gets the ball, and he doesn't catch him at all."
Huddersfield's Carlos Corberan: "I think we started well, controlling the game and we scored the goal. They created problems for us after the goal and we didn't do enough in the first half. They won a lot of second balls and we didn't find a way to continue our dynamic. As a team, we should be better, but they took control in the last minutes of the first half. We should have avoided both of the goals.
"We have conceded too many penalties and that's something we have to avoid. But in the second half we got more of the reaction I was looking for. We created enough chances to have got something out of the game as a minimum but unfortunately, we did not take them."