Nicky Maynard scored twice as Bristol City continued an upturn in form with a vital victory against Millwall.
The win made it four games unbeaten for City, who remain in the bottom three.
Maynard gave the visitors the lead when he ran on to Neil Kilkenny's pass to drill a low shot in on 14 minutes.
And despite Jay Simpson drawing the hosts level on 57 minutes when he side-footed Darius Henderson's cross, Maynard scored six minutes later by smashing in Albert Adomah's centre.
Adomah could have scored before that goal but dragged his shot wide, and Millwall's Jack Smith also cleared off the line from Stephen Pearson's effort.
Defeat for Millwall means they are two points above Bristol City, two places above the relegation zone.
VIEWS FROM THE DRESSING ROOM
Bristol City manager Derek McInnes told BBC Radio Bristol:
"We could have won a bit more comfortably. We could have got behind them and cut them open on a few occasions.
"But it's the same three points at the end of the day and show a bit of character, which is never a bad thing.
"There's no question that picking up any less than three points on that performance would have been a crime."