Two goals from Matty Blair gave York their first victory in five league games as they beat struggling Lincoln.
Blair grabbed his first when he found space in the penalty area and was able to fire into the roof of the net.
He headed in Jamie Reed's cross for his second of the day to take his total to seven goals in his last six matches.
Lincoln's Jamie Taylor shot wide from 15 yards and Alan Power was denied by Michael Ingham as the Imps suffered their third successive league defeat.
VIEWS FROM THE DRESSING ROOM
Lincoln City manager David Holdsworth told BBC Lincolnshire:
"When you suffer a defeat you look to take the positives out of it and that's what I'll try to do.
"It was a mistake that led to the first goal and little things like that can cost you, especially against the better teams in the division. But overall I'm not going to be too critical because I felt we contested the game and were certainly in it.
"I think in the first half we were in the ascendancy without having any real quality but I must give credit to the opposition for that. At half time I felt that if one team were going to go on and win it, it was going to be us."
York City manager Gary Mills told BBC Radio York:
"I thought we were excellent today. We've had an issue just lately of conceding early goals and luckily for me they've got a clock here that I can look at.
"When it went to 21 minutes I honestly believed we'd go on to win the game.
"We've conceded early in a lot of games and it was important for us to keep a clean sheet."