Salisbury City 1-2 Lincoln City
Danny Rowe's last-minute goal gave Lincoln a first win in four matches and effectively ended Salisbury's hopes of reaching the play-offs.
The hosts took the lead when Jamie White beat Imps keeper Nick Townsend at the second attempt.
Lincoln drew level through Sean Newton's free-kick and they nearly went ahead when Kris Bright's volley and Tom Miller's header went close.
Rowe secured the win with a clinical finish past keeper James Bittner.
Salisbury are seven points off sixth place with three games to go, while Lincoln are 15th.
Salisbury City manager Mikey Harris told BBC Wiltshire:
"Unfortunately injuries have cost us today, the threadbare squad that we've got became apparent.
"Lincoln piled on the pressure in the last part of the second half and we succumbed.
"Had we not picked up those injuries then the least we come out with is a point.
"I'm disappointed that we've got ourselves into a winning position and not been able to see it through."
Lincoln City manager Gary Simpson told BBC Radio Lincolnshire:
"They're tough games at this stage of the season, they're not pretty. It wasn't a classic but I thought that having conceded a goal from a mistake, we scored two good goals.
"We seem to have these cameos where a player's come on and done something and Danny's done that today. I've been waiting for a goal like that from him but you want to see that for longer periods, you want to start them and see it.
"Salisbury have been on a good run and to come here and beat them, at home and when they've got their tails up, is a good result.
"It's been frustrating (this season) because I don't think we've been that far away. If we could have picked up a couple of wins in that barren spell when we were struggling for players then we might have been coming into these last four games with something to go at but it's been a learning curve for everybody."