Fleetwood Town picked up a first win in four games at the expense of struggling York City.
The Cod Army took the lead when Gareth Evans headed home after Minstermen keeper Michael Ingham could only parry Jamille Matt's initial effort.
The hosts then felt they should have had a penalty when Ryan Jarvis fell under the challenge of Ryan Cresswell in the area.
Matt secured the win when he followed in Steven Schumacher's strike.
VIEW FROM THE DRESSING ROOM
York City boss Nigel Worthington told BBC Radio York:
"We set out like we set out on Tuesday at Chesterfield, to try and stem and hold them.
"Over the large part we held up quite well and restricted them. They had some possession but didn't over create.
"The goal from our point of view was not a good goal to concede, I'm disappointed with that.
"The one thing I was delighted with was the character and the spirit within the team to keep going, keep fighting until the final whistle, that was fantastic."
York City 24 Ingham 02 Oyebanjo (Fletcher - 45' ) 03 Davies 14 Montrose 05 McGurk (Allen - 38' ) 06 Parslow 12 Carson 29 Whitehouse 11 Jarvis (Bowman - 68' ) 30 O'Neill 27 Brobbel Substitutes 01 Kettings 09 Fletcher 17 Cresswell 18 Platt 19 Bowman 20 Allen 28 Puri Fleetwood Town 01 Davies 14 Hogan (McLaughlin - 78' ) 20 Taylor Booked 08 Schumacher (Brown - 86' ) 06 Pond 16 Cresswell 11 Hughes 04 Murdoch 10 Matt 18 Sarcevic Booked (Blair - 91' ) 07 Evans Substitutes 05 Roberts 09 Parkin 12 Brown 15 McLaughlin 17 Blair 23 Ball 33 Lucas
Ref: Kevin Wright