Championship strugglers Cardiff City eased the pressure on manager Omer Riza with a much-needed win at play-off hopefuls Blackburn Rovers.
Yousef Salech headed Cardiff into an early lead which lasted only 10 minutes as Yuki Ohashi nodded in for the home side.
Yakou Meite restored the Bluebirds' lead in the second half with his first touch of the match, scoring the game's third header following a cross by fellow substitute Will Alves.
Cardiff hearts were in their mouths in injury time when referee Adam Herczeg awarded Blackburn a penalty, but he then reversed his decision after consulting with one of his assistants.
Having lost their previous three games, Cardiff remain 21st in the table and just one point clear of the relegation zone, but this victory - only their second on the road this season - could be priceless for their hopes of staying up.
Blackburn drop down to 10th and are five points adrift of the play-off places, with just one point from their four matches under head coach Valerien Ismael.
This was an important fixture at both ends of the Championship as Blackburn looked to revive their faltering bid for a top-six finish while Cardiff searched for just a fifth win in 25 league matches.
Their most recent defeat at home to relegation rivals Luton Town on Tuesday had prompted boos from the Bluebirds' fans at the final whistle and heaped pressure on Riza.
His team responded well at Ewood Park, taking the lead after five minutes as Sivert Mannsverk crossed for fellow January signing Salech to head in.
However, Blackburn equalised 10 minutes later as Emmanuel Dennis' delivery from the left was converted by Ohashi, despite a touch from Ethan Horvath.
The Cardiff goalkeeper made a fine save to deny Sondre Tronstad's powerful shot shortly before half-time but, after the break, there was more action at the other end with Callum Robinson and Alves both going close for the visitors.
Alves then supplied the cross for what proved to be the winning goal by Meite, before creating another golden chance for his fellow substitute, whose shot was blocked on the line.
That looked like it would prove a costly miss when referee Herczeg awarded Blackburn a stoppage-time penalty for what he deemed to be a handball by Callum O'Dowda.
But Herczeg changed his mind after consulting with his assistant – who seemed to suggest Rovers' Makhtar Gueye had handled the ball – and Cardiff were able to hold on for a hugely important win.
Cardiff City: Horvath, Rinomhota (Davies 60'), Ng, Fish, Bagan, O'Dowda, Ralls (Colwill 37'), Chambers, Mannsverk (Turnbull 72'), Robinson (Méïté 72'), Salech (Alves 60').
Substitutes: Turner, Goutas, Willock, Ashford.
Blackburn Rovers: Pears, Rankin-Costello, Carter, Hyam, Ribeiro, Tronstad (Cantwell 81'), Travis, Ohashi (Woodrow 81'), Dolan, Dennis (Cozier-Duberry 63'), Gueye.
Substitutes: Toth, Powell, Sanderson, Atcheson, Forshaw, Buckley.