Merouane Zemmama's 89th-minute winner helped ease Middlesbrough's relegation fears as they came from behind to clinch a vital 2-1 victory against Derby.
The Moroccan's deflected strike from the edge of the box was his first for the Teesside club and ensured Boro claimed all three points.
Jamie Ward had put the hosts in front from the spot in the 32nd minute after he had been felled by Nicky Bailey in the area.
However, Seb Hines grabbed an equaliser for the hosts with a 74th minute header before Zemmama's deflected strike hit the back of the net to help in Boro's fight against the drop.
In truth it was no less than they deserved as they completely dominated the tempo of the second half following a dour first period.
Although Boro remain just two places above the danger places, they are now six points clear of 22nd-placed Scunthorpe.