Match ends, Barnet 3, York City 1.
Barnet ended their three-game losing streak with victory over York and moved away from League Two's relegation zone.
John Akinde broke the deadlock in the second half, slotting home a finish after being played through on goal.
York thought they had gained a point when Michael Coulson levelled with a drilled effort 10 minutes from time.
However, Michael Gash smashed a 25-yard free-kick into the bottom corner just two minutes later, before Josh Clarke raced clear to slot in late on.
Barnet manager Martin Allen told BBC Radio London:
"We weathered the wind in the first half and then knew that chances would come our way in the second half.
"I thought we showed a lot of resilience in the first half, and I thought we played quite well.
"The people sung with enthusiasm, the players played with enthusiasm and if you pay your money you want some action. I think people who came today got value for money."
York City manager Russ Wilcox told BBC Radio York:
"Nowhere near good enough in a nutshell, the second half performance.
"I thought the first half was even. But the second half we conceded a soft goal, got ourselves back in the game and throw it all away within two minutes.
"It's unacceptable and not good enough.
"I feel for the York fans again. They got behind the team really well and we've got to produce better than that."
Line-ups
Barnet
Formation 4-4-2
- 21Stephens
- 7YiadomBooked at 67mins
- 5N'Gala
- 6Nelson
- 3Johnson
- 27Clarke
- 12GambinSubstituted forNwoguat 53'minutes
- 16Champion
- 8WestonSubstituted forTogwellat 77'minutes
- 18Gash
- 24McLeanSubstituted forAkindeat 53'minutes
Substitutes
- 2Hoyte
- 9Akinde
- 14Togwell
- 17Muggleton
- 22Stevens
- 28Nwogu
- 31McKenzie-Lyle
York
Formation 4-3-3
- 1Flinders
- 2McCoyBooked at 36mins
- 15Lowe
- 5McCombe
- 3Ilesanmi
- 20CollinsBooked at 86mins
- 10PennSubstituted forSinclairat 10'minutes
- 4Berrett
- 7Coulson
- 9OliverSubstituted forTurnerat 79'minutes
- 13Straker
Substitutes
- 11Carson
- 16Winfield
- 23Turner
- 24Ingham
- 26Godfrey
- 27Tutonda
- 29Sinclair
- Referee:
- Michael Bull
- Attendance:
- 1,767
Match Stats
- Possession
- Home49%
- Away51%
- Shots
- Home12
- Away6
- Shots on Target
- Home6
- Away4
- Corners
- Home4
- Away2
- Fouls
- Home13
- Away19
Live Text
Post update
Full Time
Second Half ends, Barnet 3, York City 1.
Goal!
Goal! Barnet 3, York City 1. Josh Clarke (Barnet) right footed shot from the centre of the box to the bottom right corner. Assisted by John Akinde.
Post update
Attempt saved. Tom Champion (Barnet) right footed shot from outside the box is saved in the top right corner.
Post update
Corner, Barnet. Conceded by Scott Flinders.
Post update
Attempt saved. John Akinde (Barnet) right footed shot from the centre of the box is saved in the top right corner.
Booking
Michael Collins (York City) is shown the yellow card for a bad foul.
Post update
Sam Togwell (Barnet) wins a free kick in the defensive half.
Post update
Foul by Michael Collins (York City).
Post update
Foul by Michael Gash (Barnet).
Post update
Michael Collins (York City) wins a free kick in the attacking half.
Post update
Tom Champion (Barnet) wins a free kick in the attacking half.
Post update
Foul by Rhys Turner (York City).
Goal!
Goal! Barnet 2, York City 1. Michael Gash (Barnet) right footed shot from outside the box to the bottom right corner. Assisted by Sam Togwell following a set piece situation.
Post update
Andy Yiadom (Barnet) wins a free kick in the defensive half.
Post update
Foul by John McCombe (York City).
Goal!
Goal! Barnet 1, York City 1. Michael Coulson (York City) right footed shot from outside the box to the bottom left corner. Assisted by Anthony Straker.
Substitution
Substitution, York City. Rhys Turner replaces Vadaine Oliver.
Post update
Attempt missed. Michael Gash (Barnet) header from the left side of the six yard box is close, but misses to the right.
Post update
Corner, Barnet. Conceded by Scott Flinders.