Grays climbed out of the Blue Square Premier relegation zone with a crucial win over 10-man York, who drop into the relegation places as a result.
On-loan striker Andy Pugh struck for Grays, firing into the top-left corner from inside the box.
Mark Greaves nearly restored parity in the second half but headed Simon Rusk's free-kick wide of the target.
Rusk was sent off for York deep into injury time for foul and abusive language to compound the visitors woe.
Grays: Arnold, Long, Stuart, Wilnis, Beavan, Elliott, Thurgood, Cogan, Welsh, Taylor (Slabber 80), Pugh.
Please turn on JavaScript. Media requires JavaScript to play.
Subs Not Used: Jones, Berry, Black, Hudson-Odoi.
Booked: Arnold, Thurgood.
Goals: Pugh 38.
York: Ingham, Pejic, McGurk, Parslow, Robinson, Purkiss (Boyes 75), Mackin (Greaves 75), Rusk, McWilliams (Russell 63), Brown, Sodje .
Subs Not Used: McBreen, Christian Smith.
Sent Off: Rusk (90).
Booked: Mackin.
Att: 720
Ref: M Thompson (England).
What are these?
Print Sponsor
Bookmark with:
What are these?