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."
Live Text Commentary
Full Time The referee blows for the end of the match.90:00 +2:35
Corner taken by Lanre Oyebanjo from the right by-line to the near post.90:00 +1:39
Lanre Oyebanjo takes a shot. Lanre Oyebanjo takes a outswinging corner from the right by-line to the near post.88:31
Jamie Reed is caught offside. Tommy Lee takes the indirect free kick.87:50
Scott Kerr produces a right-footed shot from the edge of the box and misses to the right of the target.86:29
Effort from the edge of the box by Matty Blair goes wide of the right-hand upright.85:41
Unfair challenge on Daniel Parslow by Brennan Dickenson results in a free kick. Michael Ingham takes the indirect free kick.82:58
Free kick taken by Tom Allen.82:58 Substitution
Substitution (Chesterfield) makes a substitution, with Brennan Dickenson coming on for Luis Boa Morte.82:58
Unfair challenge on Scott Kerr by Sam Togwell results in a free kick.81:58
Corner taken by Lanre Oyebanjo from the right by-line, Unfair challenge on Liam Cooper by Chris Smith results in a free kick. Indirect free kick taken by Tommy Lee.80:55
Free kick awarded for a foul by Tendayi Darikwa on Lanre Oyebanjo. Jason Walker takes the free kick.80:30
Scott Kerr fouled by Luis Boa Morte, the ref awards a free kick. Tom Allen takes the indirect free kick.77:57 Substitution
Substitution Lanre Oyebanjo is brought on as a substitute for Michael Potts.77:45 Substitution
Substitution Chris Doig goes off and Tom Allen comes on.76:03
The assist for the goal came from Luis Boa Morte.76:03 Goal scored
Goal! - Tendayi Darikwa - Chesterfld 3 - 0 York Goal scored by Tendayi Darikwa from the edge of the area low into the middle of the goal. Chesterfield 3-0 York.74:37
Assist by Luis Boa Morte.74:37 Goal scored
Goal! - Danny Whitaker - Chesterfld 2 - 0 York Danny Whitaker finds the back of the net with a goal from inside the penalty box to the bottom left corner of the goal. Chesterfield 2-0 York.73:36
Direct free kick taken by Luis Boa Morte.
Substitution Conor Townsend goes off and Danny Whitaker comes on.73:36
Patrick McLaughlin gives away a free kick for an unfair challenge on Conor Townsend.69:24
Jamal Fyfield takes a shot. Blocked by Craig Clay.65:13
Jason Walker takes the free kick.65:13 Substitution
Substitution (York) makes a substitution, with Jamie Reed coming on for Alex Rodman.65:13
Conor Townsend challenges Scott Kerr unfairly and gives away a free kick.60:07
Michael Ingham takes the indirect free kick.60:07 Substitution
Substitution Mark Randall goes off and Craig Clay comes on.60:07
Luis Boa Morte concedes a free kick for a foul on Chris Smith.59:34
Conor Townsend fouled by Scott Kerr, the ref awards a free kick. Tommy Lee takes the free kick.54:12
Drew Talbot crosses the ball, clearance made by Jamal Fyfield.45:48
Conor Townsend provided the assist for the goal.45:48 Goal scored
Goal! - Drew Talbot - Chesterfld 1 - 0 York Drew Talbot grabs a goal from inside the area to the bottom left corner of the goal. Chesterfield 1-0 York.45:32
Conor Townsend fouled by Alex Rodman, the ref awards a free kick. Mark Randall takes the free kick.45:01
The second half has started.45:00 +1:04 Half time
Half Time It is the end of the first-half.44:33
Liam Cooper challenges Jason Walker unfairly and gives away a free kick. Michael Potts restarts play with the free kick.43:42
Shot from inside the area by Luis Boa Morte clears the bar.41:18
Michael Potts produces a left-footed shot from the edge of the box and misses to the right of the goal.39:22
Conor Townsend gives away a free kick for an unfair challenge on Scott Kerr. Direct free kick taken by Michael Potts.37:55
Patrick McLaughlin takes a shot. Save made by Tommy Lee.36:27
Sam Togwell takes a shot. Blocked by Chris Doig.34:38
Drew Talbot fouled by Patrick McLaughlin, the ref awards a free kick. Tommy Lee takes the free kick.32:38
Conor Townsend is flagged offside by the assistant referee. Michael Ingham takes the indirect free kick.30:56
Michael Potts takes a shot. Tommy Lee makes a save.28:57
Foul by Luis Boa Morte on Daniel Parslow, free kick awarded. The free kick is delivered right-footed by Michael Potts from right channel, clearance made by Sam Hird.27:41
Conor Townsend gives away a free kick for an unfair challenge on Scott Kerr. Scott Kerr takes the free kick.25:59
Scott Kerr challenges Luis Boa Morte unfairly and gives away a free kick. Mark Randall takes the direct free kick.24:51
Header from close range by Chris Smith misses to the right of the goal.24:12
Sam Togwell challenges Jason Walker unfairly and gives away a free kick. Michael Potts restarts play with the free kick.22:35
Patrick McLaughlin takes a shot. Blocked by Liam Cooper.21:52
Free kick awarded for an unfair challenge on Conor Townsend by Daniel Parslow. Indirect free kick taken by Liam Cooper.19:51
Corner from left by-line taken by Conor Townsend.19:18
Scott Kerr concedes a free kick for a foul on James O'Shea. Direct free kick taken by Mark Randall.17:15
Patrick McLaughlin delivers the ball.15:25
A cross is delivered by Matty Blair, clearance made by Liam Cooper.14:18
A cross is delivered by Conor Townsend, Chris Doig makes a clearance.12:25
Foul by Mark Randall on Michael Potts, free kick awarded. Free kick taken by Jason Walker.10:55
Tendayi Darikwa sends in a cross.8:45
Tendayi Darikwa gives away a free kick for an unfair challenge on Jamal Fyfield. Michael Ingham takes the free kick.5:30
James O'Shea produces a cross.4:55
Patrick McLaughlin crosses the ball, Tommy Lee makes a save.4:26
Alex Rodman delivers the ball.3:35
Patrick McLaughlin concedes a free kick for a foul on Drew Talbot. Direct free kick taken by Drew Talbot.1:59
James O'Shea takes a shot. Save by Michael Ingham.1:27
Alex Rodman delivers the ball.0:59
Tendayi Darikwa sends in a cross, save by Michael Ingham.0:00
The match gets underway.
Live data and text provided by our data suppliers