Chesterfield hit three second-half goals to beat York and climb within a point of the League Two play-offs.
Drew Talbot tapped in the Spireites' opener just seconds after the break.
Chesterfield substitute Danny Whitaker's first touch on 75 minutes then doubled the home side's lead.
And, just two minutes later, he turned provider, beating keeper Michael Ingham to an underhit back pass to feed Luis Boa Morte, who was crowded out, only for Tendayi Darikwa to smash home.
VIEWS FROM THE DRESSING ROOM
Chesterfield assistant manager Tommy Wright told BBC Radio Sheffield:
"The first half York were the better side, but we changed one or two things at half time.
"We got a great response (from the players), especially after last week.
"The most important thing is how you respond and I thought we bounced back well.
"Luis Boa Morte has been great since he's been at the club and he was terrific today."
York City manager Gary Mills told BBC Radio York:
"It's a 90 minute game and we have got to go and play the second how we played the first.
"We were on our front foot first half and made it difficult for them.
"I thought we responded well for five minutes after they scored, probably our best spell of the second half and then when you concede the second and then a very, very sloppy third it's disappointing.
"We have to be able to play to that level like we did first half to get a result out of this league. Forty five is not enough."