Morecambe cruised to victory at York on their first ever visit to Bootham Crescent in the Football League.
Lewis Alessandra fired the Shrimps ahead, but Nick Fenton felled Chris Smith in the box to allow Jason Walker to level from the penalty spot.
Kevin Ellison pounced upon Minstermen keeper Michael Ingham's mistake to tap in and put the visitors back in front.
Jack Redshaw then wrapped up the three points by calmly slotting home before finishing when through on goal.
They were Redshaw's ninth and 10th goals of the season, and helped Morecambe move up to 12th, while York drop down one place to 17th.
VIEWS FROM THE DRESSING ROOM
York City manager Gary Mills told BBC Radio York:
"Second half we've had two unbelievable chances to go two one up and we haven't taken them again and then we've been punished.
"The fourth goal, just the lad getting between my two centre halves is diabolical.
"The last 20 minutes has been awful and another game where we should have got something out of it."
Morecambe manager Jim Bentley told BBC Radio Lancashire:
"Our away performances have been quite good. The league is tight and there are always little things that happen within games that sway it either way.
"I think we've been a little bit unlucky on our travels of late, but we got a bit of luck at Dagenham.
"We've come to York, knowing we're coming up against a good side, with a game plan. We've carried it out and come away worthy winners."
Live Text Commentary
Full Time The referee ends the match.90:00 +4:33
Corner taken right-footed by Jason Walker from the right by-line, save made by Barry Roche.90:00 +3:40 Substitution
Substitution Jordan Burrow joins the action as a substitute, replacing Chris Holroyd.90:00 +2:54
The assist for the goal came from Kevin Ellison.90:00 +2:54 Goal scored
Goal! - Jack Redshaw - York 1 - 4 Morecambe Jack Redshaw scores a goal from deep inside the penalty box to the bottom right corner of the goal. York 1-4 Morecambe.89:50
Foul by Chris Smith on Andrew Parrish, free kick awarded. Free kick taken by Barry Roche.88:15
Jack Redshaw produces a left-footed shot from deep inside the penalty area which goes wide of the left-hand post.86:05
Assist on the goal came from Kevin Ellison.86:05 Goal scored
Goal! - Jack Redshaw - York 1 - 3 Morecambe Goal scored by Jack Redshaw from inside the six-yard box to the bottom left corner of the goal. York 1-3 Morecambe.84:24
The ball is sent over by Curtis Obeng, Close range header by Jamal Fyfield goes over the bar.83:22
Chris Smith takes a shot. Christopher McCready gets a block in.82:27
Kevin Ellison is flagged offside by the assistant referee. Michael Ingham restarts play with the free kick.80:03
Jason Walker is adjudged to have handled the ball. Barry Roche takes the free kick.80:03 Substitution
Substitution John McReady on for Alex Rodman.80:03 Substitution
Substitution Jamal Fyfield is brought on as a substitute for Patrick McLaughlin.77:42
The referee blows for offside against Alex Rodman. Indirect free kick taken by Barry Roche.73:46 Goal scored
Goal! - Kevin Ellison - York 1 - 2 Morecambe Kevin Ellison gets on the score sheet with a goal from inside the penalty area to the bottom right corner of the goal. York 1-2 Morecambe.72:38
Free kick awarded for a foul by David McDaid on Christopher McCready. Nicholas Fenton takes the free kick.72:16
Patrick McLaughlin has an effort at goal from outside the penalty box missing to the wide right of the goal.69:16 Substitution
Substitution Jack Redshaw comes on in place of Lewis Alessandra.
Substitution David McDaid joins the action as a substitute, replacing Michael Potts.64:51
Unfair challenge on Chris Holroyd by Jack O'Connell results in a free kick. Stewart Drummond restarts play with the free kick.63:48
Corner taken left-footed by Patrick McLaughlin, Daniel Parslow takes a shot. Clearance by Will Haining.61:11
The assistant referee signals for offside against Kevin Ellison. Free kick taken by Scott Kerr.58:52
The assistant referee flags for offside against Kevin Ellison. Michael Ingham takes the direct free kick.58:21
Patrick McLaughlin takes a shot. Save by Barry Roche.56:35
Scott Kerr gives away a free kick for an unfair challenge on Ryan Williams. Will Haining takes the indirect free kick.54:53
Will Haining takes a shot. Save by Michael Ingham.53:39
Unfair challenge on Jason Walker by Christopher McCready results in a free kick. Jason Walker restarts play with the free kick.51:52
The ball is sent over by Michael Potts, clearance made by Nicholas Fenton.51:29
Patrick McLaughlin decides to take a short corner.46:08
Michael Potts is penalised for handball and concedes a free kick. Free kick taken by Will Haining.45:01
The referee gets the second half underway.45:00 +1:33 Half time
Half Time The referee calls an end to the first half.45:00 +1:07
Michael Potts takes a shot. Save by Barry Roche.43:02
Outswinging corner taken right-footed by Ryan Williams from the right by-line, Nicholas Fenton has a header from inside the six-yard box and clears the crossbar.42:09
Inswinging corner taken from the left by-line by Ryan Williams, Jack O'Connell makes a clearance.40:36
Daniel Parslow challenges Kevin Ellison unfairly and gives away a free kick. The free kick is delivered right-footed by Ryan Williams from right wing, clearance by Jack O'Connell.39:44
A cross is delivered by Curtis Obeng, Matty Blair has a header from close range and clears the crossbar.27:22 Goal scored
Goal! - Jason Walker - York 1 - 1 Morecambe Jason Walker scores a power penalty. York 1-1 Morecambe.25:38
Inswinging corner taken left-footed by Patrick McLaughlin from the right by-line, Christopher McCready challenges Chris Smith unfairly and gives away a Penalty.24:31
Daniel Parslow takes a shot. Save by Barry Roche.22:13
Assist by Kevin Ellison.22:13 Goal scored
Goal! - Lewis Alessandra - York 0 - 1 Morecambe A goal is scored by Lewis Alessandra from inside the six-yard box to the bottom left corner of the goal. York 0-1 Morecambe.19:09
Kevin Ellison takes a shot. Save by Michael Ingham.17:53
Free kick awarded for an unfair challenge on Jason Walker by Nicholas Fenton. Scott Kerr takes the indirect free kick.14:57
Patrick McLaughlin takes a shot. Gary McDonald gets a block in.14:32
Free kick awarded for an unfair challenge on Curtis Obeng by Chris Holroyd. Curtis Obeng takes the free kick.7:52
Unfair challenge on Scott Kerr by Chris Holroyd results in a free kick. Scott Kerr takes the free kick.6:30
Gary McDonald takes a shot. Save by Michael Ingham.5:55
Andrew Parrish delivers the ball, Headed effort on goal by Kevin Ellison from just inside the box goes harmlessly over the goal.3:49
Chris Holroyd gives away a free kick for an unfair challenge on Jack O'Connell. Indirect free kick taken by Michael Ingham.2:24
Effort from the edge of the area by Matty Blair goes wide of the left-hand upright.0:00
The referee gets the game underway.
Live data and text provided by our data suppliers