Scarborough's hopes of staying in the Conference suffered a hammer blow as they were thrashed at home by Grays.
Aaron McLean drove in from 12 yards to put Grays ahead and Michael Kightly converted a Glenn Poole centre.
Poole then lobbed in from 25 yards, David McNiven drilled in for the hosts before McLean swept home his second.
Simon Weaver's header made it 4-2, but Poole slotted home before Kightly completed his hat-trick with a rising shot and then a close-range finish.
Scarborough: Dunbavin, Foot, Weaver, Atkinson, Blunt (Coulson 67), Redfearn (Beadle 78), Ingram (McClare 65), Fowler, Pounder, Hackworth, McNiven.
Subs Not Used: Walker, Cook.
Booked: Foot, Weaver, Hackworth, Redfearn.
Goals: McNiven 55, Weaver 61.
Grays Athletic: Bayes, Sambrook (Bruce 62), Stuart, Hanson, Nutter, Kightly, Thurgood (Williamson 78), Martin, Poole, McLean (Hooper 74), Oli.
Subs Not Used: Eyre, Olayinka.
Booked: Hanson, Thurgood.
Goals: McLean 6, Kightly 17, Poole 43, McLean 56, Poole 71, Kightly 80, 90.
Ref: M Harris (Lincolnshire).