Two first-half goals from Michael Potts and one by Jason Walker saw York defeat play-off chasing Rochdale.

Potts pounced to score from close range before Walker toe-poked the ball past Josh Lillis to double their lead.

Potts bagged the third when he clipped the ball past Lillis.

Rhys Bennett pulled one back after weaving past several defenders and slipping the ball home before Bobby Grant scored a late penalty following Potts's foul on George Donnelly.

VIEW FROM THE DRESSING ROOM

York City manager Gary Mills told BBC Radio York:

"I think it was about getting the win, no matter how we got it we've needed that, I think we've deserved it.

"We kept saying, if we take our chances, sooner or later someone's going to be down three or four at half-time and it's happened today against Rochdale.

"I thought it was very even second half but overall we've deserved the victory."

Match Stats

Shots

13 7

On target

4 4

Corners

4 6

Fouls

12 13

Live Text Commentary

90:00 +5:44 Full time

Full Time The referee blows his whistle to end the game.

90:00 +5:18

George Donnelly gives away a free kick for an unfair challenge on Chris Smith. Michael Ingham takes the direct free kick.

90:00 +4:10

Jamie Reed concedes a free kick for a foul on Ryan Edwards. Free kick taken by Josh Lillis.

90:00 +3:17 Booking

Booking George Donnelly receives a yellow card for unsporting behaviour.

90:00 +3:03

Free kick awarded for a foul by George Donnelly on Jon Challinor. Direct free kick taken by Daniel Parslow.

90:00 +1:18

Bobby Grant concedes a free kick for a foul on Chris Doig. Michael Ingham restarts play with the free kick.

89:36

Jamie Reed challenges Rhys Bennett unfairly and gives away a free kick. Direct free kick taken by Josh Lillis.

88:48 Substitution

Substitution (York) makes a substitution, with Jamie Reed coming on for Jason Walker.

88:38

Free kick awarded for a foul by George Donnelly on Daniel Parslow. Michael Ingham takes the direct free kick.

87:16

Free kick awarded for a foul by Lanre Oyebanjo on George Donnelly. Ashley Grimes has a direct shot on goal from the free kick, save by Michael Ingham.

85:46

Bobby Grant produces a left-footed shot from just outside the box that misses to the right of the goal.

84:04 Substitution

Substitution Lanre Oyebanjo on for Patrick McLaughlin.

84:04 Substitution

Substitution Jon Challinor replaces Michael Potts.

82:52 Goal scored

Goal! - Bobby Grant - Rochdale 2 - 3 York Penalty taken right-footed by Bobby Grant and scored. Rochdale 2-3 York.

81:28

Bobby Grant takes a shot. Inswinging corner taken by Terry Gornell. George Donnelly fouled by Michael Potts, the ref awards a Penalty.

80:26

Bobby Grant takes the direct free kick.

80:26 Booking

Booking Caution for Chris Smith.

80:17

Chris Smith challenges Terry Gornell unfairly and gives away a free kick.

79:51

Peter Cavanagh takes a shot. Blocked by Chris Doig.

78:36 Substitution

Substitution Jason Kennedy leaves the field to be replaced by Ashley Grimes.

78:36

Bobby Grant gives away a free kick for an unfair challenge on Scott Kerr. Michael Ingham takes the direct free kick.

77:43

Effort from just outside the box by Terry Gornell goes over the bar.

75:53

George Donnelly is ruled offside. Free kick taken by Michael Ingham.

75:38

Unfair challenge on Kevin McIntyre by Daniel Parslow results in a free kick. Free kick taken by Kevin McIntyre.

70:29

Outswinging corner taken left-footed by Bobby Grant from the left by-line.

68:45

Michael Potts takes a shot from just outside the penalty area which clears the crossbar.

68:18

The ball is swung over by Daniel Parslow, clearance by Phil Edwards.

67:33

Michael Potts takes a outswinging corner to the near post, Rhys Bennett manages to make a clearance.

66:56

Outswinging corner taken by Michael Potts from the right by-line played to the near post.

65:03

George Donnelly gives away a free kick for an unfair challenge on Matty Blair. Direct free kick taken by Michael Ingham.

63:47

The official flags Peter Cavanagh offside. Michael Ingham takes the free kick.

62:56

Inswinging corner taken right-footed by Michael Potts played to the near post, clearance by Rhys Bennett.

60:56 Goal scored

Goal! - Rhys Bennett - Rochdale 1 - 3 York A goal is scored by Rhys Bennett from inside the six-yard box to the bottom left corner of the goal. Rochdale 1-3 York.

59:23

A cross is delivered by Matty Blair.

58:39

Ryan Edwards takes a shot.

58:12

Free kick awarded for an unfair challenge on Terry Gornell by Michael Potts. Andrew Tutte takes the free kick.

57:21

Ashley Chambers challenges Phil Edwards unfairly and gives away a free kick. Josh Lillis restarts play with the free kick.

56:19

Foul by Jason Kennedy on Michael Potts, free kick awarded. The free kick is swung in right-footed by Michael Potts, Peter Cavanagh manages to make a clearance.

53:46

Matty Blair takes a shot. Save made by Josh Lillis.

50:08

The assistant referee flags for offside against Jason Walker. Free kick taken by Phil Edwards.

47:24

Bobby Grant takes a shot. Michael Ingham makes a save.

45:01

The second half has started.

45:01 Substitution

Substitution (Rochdale) makes a substitution, with George Donnelly coming on for Dele Adebola.

45:00 +2:35 Half time

Half Time The whistle is blown to end the first half.

44:21

Unfair challenge on Phil Edwards by Jason Walker results in a free kick. Free kick taken by Bobby Grant.

43:57

Unfair challenge on Bobby Grant by Scott Kerr results in a free kick. Bobby Grant takes the direct free kick.

42:40

Michael Potts delivers the ball from the free kick right-footed from right wing.

42:40 Booking

Booking Kevin McIntyre shown a yellow card.

42:17

Kevin McIntyre gives away a free kick for an unfair challenge on Matty Blair.

41:01

Scott Kerr fouled by Andrew Tutte, the ref awards a free kick. Scott Kerr takes the direct free kick.

39:30

Terry Gornell has an effort at goal from outside the penalty box striking the post.

36:06

Dele Adebola takes a shot.

34:55

The assist for the goal came from Ashley Chambers.

34:55 Goal scored

Goal! - Michael Potts - Rochdale 0 - 3 York Michael Potts gets on the score sheet with a goal from inside the six-yard box to the bottom left corner of the goal. Rochdale 0-3 York.

33:26

Corner taken by Michael Potts, clearance made by Ryan Edwards.

30:12

Header from close range by Jason Walker misses to the right of the target.

26:42

Shot from just outside the box by Andrew Tutte misses to the right of the target.

25:15

Peter Cavanagh concedes a free kick for a foul on Jason Walker. Jamal Fyfield takes the direct free kick.

23:00

Corner taken right-footed by Michael Potts from the right by-line, Phil Edwards makes a clearance.

20:46

Free kick awarded for an unfair challenge on Jason Kennedy by Michael Potts. Free kick taken by Peter Cavanagh.

19:54

Unfair challenge on Chris Smith by Dele Adebola results in a free kick. Free kick taken by Scott Kerr.

18:31 Goal scored

Goal! - Jason Walker - Rochdale 0 - 2 York Jason Walker scores a goal from inside the penalty area to the bottom left corner of the goal. Rochdale 0-2 York.

17:59

Phil Edwards is penalised for handball and concedes a free kick. Ashley Chambers takes the direct free kick.

15:13

Dele Adebola takes a shot. Jason Kennedy takes a shot. Save by Michael Ingham. Corner taken by Bobby Grant. Outswinging corner taken left-footed by Bobby Grant played to the near post.

14:18

The ball is crossed by Jamal Fyfield, Effort from the edge of the penalty box by Michael Potts goes wide of the right-hand upright.

13:01

Jamal Fyfield concedes a free kick for a foul on Bobby Grant. Peter Cavanagh takes the free kick.

7:58

Michael Potts concedes a free kick for a foul on Peter Cavanagh. Peter Cavanagh restarts play with the free kick.

6:55 Goal scored

Goal! - Michael Potts - Rochdale 0 - 1 York Michael Potts finds the back of the net with a goal from inside the six-yard box to the bottom right corner of the goal. Rochdale 0-1 York.

5:29

Corner taken by Michael Potts from the right by-line played to the near post.

2:32

Unfair challenge on Ashley Chambers by Phil Edwards results in a free kick. Jamal Fyfield takes the direct free kick.

0:00

The referee gets the game started.

Live data and text provided by our data suppliers