Match ends, York City 2, Tranmere Rovers 0.
Two goals from striker Wes Fletcher moved York out of the League Two relegation zone and above Tranmere.
Fletcher put the hosts ahead when he met Bradley Halliday's low cross at the back post on 20 minutes for his first league goal since September.
Michael Coulson then went close before Fletcher collected Coulson's pass, cut inside and fired left-footed into the far corner on 58 minutes.
Tranmere failed to create a meaningful chance as they slipped to 22nd.
The Minstermen's first victory in eight games moves them up to 20th, two points clear of the bottom two.
York City manager Russ Wilcox told BBC Radio York:
"Fantastic - the supporters deserve that and everybody at the club deserves it.
"It has been doom and gloom, understandably when you drop into that relegation zone, but the performances have been there.
"Today was a bit special. We got right at Tranmere and played some good football.
"I don't think anybody would have complained if we'd won by four or five today."
Line-ups
York
Formation 4-4-1-1
- 31Olejnik
- 2McCoy
- 15Lowe
- 38Zubar
- 28Benning
- 7CoulsonBooked at 50mins
- 10Penn
- 17Halliday
- 12CarsonSubstituted forMeikleat 87'minutes
- 9Fletcher
- 29Sinclair
Substitutes
- 3Ilesanmi
- 5McCombe
- 14Montrose
- 18Platt
- 20Meikle
- 21Hirst
- 24Ingham
Tranmere
Formation 4-4-2
- 1Williams
- 2HolmesBooked at 28mins
- 18DugdaleBooked at 48mins
- 28McGahey
- 17Taylor
- 31Myrie-WilliamsSubstituted forMolyneuxat 75'minutes
- 22Jennings
- 4Power
- 29Donnelly
- 9OdejayiSubstituted forKoumasat 69'minutes
- 34HumeSubstituted forKirbyat 67'minutes
Substitutes
- 3Ridehalgh
- 8Koumas
- 14Laird
- 15Kirby
- 19Molyneux
- 26Brezovan
- 32Thompson
- Referee:
- Richard Clark
- Attendance:
- 3,714
Match Stats
- Possession
- Home57%
- Away43%
- Shots
- Home16
- Away4
- Shots on Target
- Home9
- Away1
- Corners
- Home2
- Away3
- Fouls
- Home14
- Away10
Live Text
Post update
Full Time
Second Half ends, York City 2, Tranmere Rovers 0.
Post update
Attempt saved. Rob Taylor (Tranmere Rovers) right footed shot from outside the box is saved in the top centre of the goal.
Post update
Attempt saved. Brad Halliday (York City) left footed shot from the centre of the box is saved in the bottom right corner.
Post update
Attempt missed. Rory Donnelly (Tranmere Rovers) right footed shot from outside the box is close, but misses to the left.
Post update
Attempt saved. Emile Sinclair (York City) left footed shot from outside the box is saved in the top left corner.
Substitution
Substitution, York City. Lindon Meikle replaces Josh Carson.
Post update
Attempt missed. Jason Koumas (Tranmere Rovers) right footed shot from outside the box is close, but misses to the right.
Post update
Foul by Brad Halliday (York City).
Post update
Rob Taylor (Tranmere Rovers) wins a free kick in the defensive half.
Post update
Attempt missed. Brad Halliday (York City) right footed shot from the centre of the box is just a bit too high.
Post update
Attempt saved. Josh Carson (York City) left footed shot from the centre of the box is saved in the centre of the goal.
Substitution
Substitution, Tranmere Rovers. Lee Molyneux replaces Jennison Myrie-Williams.
Post update
Jason Koumas (Tranmere Rovers) wins a free kick in the attacking half.
Post update
Foul by Brad Halliday (York City).
Post update
Wes Fletcher (York City) wins a free kick in the defensive half.
Post update
Foul by Adam Dugdale (Tranmere Rovers).
Post update
Corner, Tranmere Rovers. Conceded by Stéphane Zubar.
Substitution
Substitution, Tranmere Rovers. Jason Koumas replaces Kayode Odejayi.
Post update
Attempt saved. Brad Halliday (York City) right footed shot from outside the box is saved in the bottom left corner.