A brace from Emmanuel Ledesma helped Walsall to a precious victory over bottom side Chesterfield.
The Spireites took the lead when Franck Moussa headed home from Liam Ridehalgh's cross before Ledesma scored two fine finishes.
After the interval, the visitors equalised when Mark Randall got on the scoresheet from close range.
Parity was short-lived as Sam Mantom finished from Florent Cuvelier's pass to give the Saddlers a vital win.
The victory means Walsall, who have lost just one of their last 10 games, are now four points outside the relegation zone with five matches to go.
Chesterfield are rooted to the foot of the table, 13 points from safety and look destined for an immediate return to League Two.
VIEWS FROM THE DRESSING ROOM
Chesterfield manager John Sheridan tells BBC Radio Sheffield:
"The goals against us were atrocious.
"We've created lots of good chances and should have scored three or four in the first half ourselves.
"If you leak goals like we do, it makes life very difficult. We just keep letting teams back into games.
"There's no togetherness on the pitch. We go a goal up and just shut up shop."