Late goals from Jay Emmanuel-Thomas and Joe Bryan earned Bristol City their first home league win since March as they beat Crawley 2-0 at Ashton Gate.
The victory lifted the home side out of the League One relegation zone and eased the pressure on head coach Sean O'Driscoll.
Emmanuel-Thomas capitalised on a slip by Kyle McFadzean to move in one-on-one with goalkeeper Paul Jones and coolly slot his 12th goal of the season 10 minutes from time.
The former Arsenal player then turned goal-maker as Bryan beat the offside trap to race onto his pass and hammer an 87th minute shot past Jones with his left foot.
Jamie Proctor twice went close for Crawley between the goals, having a header tipped over and shooting over from a good position.
The first half was a bad advertisement for League One football as both sides gave the ball away continuously and barely mounted a worthwhile attack between them.
The only goal attempt of note came from Crawley's Emile Sinclair, whose powerful drive from the edge of the box was parried to safety by City goalkeeper Elliot Parish after 16 minutes.