Cody McDonald scored in the first game of his second spell at Gillingham to earn his side a point against York.
The deadlock was broken when Gills midfielder Charlie Lee turned Patrick McLaughlin's corner into his own net to hand the visitors the lead.
Chris Smith could have doubled their lead from another McLaughlin corner but his header hit the post.
And Coventry loanee McDonald bundled in Myles Weston's cross late on to level on his return to the Priestfield.
McDonald, who scored 25 goals in 43 games in his previous spell at Gillingham, could have won it for his side late on, but York keeper Michael Ingham produced a smart stop from his header.
The draw means that Gillingham failed to return to the top of League Two, one point behind leaders Port Vale with a game in hand.
VIEWS FROM THE DRESSING ROOM
Gillingham boss Martin Allen told BBC Radio Kent:
"I don't think it was very good first half, but we were much better second half, and from 1-0 down it was good to get a point.
"Everyone here would recognise my focus has to be on Gillingham players and improving our performance, especially when we play here in front of our supporters.
"We cleared all the pitch, and spent hours getting the pitch ready, and the performance today was below the standards we set earlier in the season.
"We all want it the same as everyone else and it's about time we put something here for our fans, who pay, and send them home happy."
York City manager Gary Mills told BBC Radio York:
"It's a difficult place to come but I have nothing but praise for them from start to finish today.
"We know when you come to Gillingham you've got to defend long throws and I thought we dealt with that well, and then when we got the ball I thought we opened them up a few times and passed the ball as well as I'd like.
"I keep saying, especially if we play like that, we need to put a run of wins together to just help us climb that table a little bit - but if we play like that it'll come, it's got to come."
Live Text Commentary
Full Time The final whistle is blown by the referee.90:00 +6:37
Corner taken left-footed by Patrick McLaughlin to the near post.90:00 +6:07
Shot by Chris Whelpdale from 25 yards. Chris Smith gets a block in.90:00 +4:34
Corner taken left-footed by Joe Martin.90:00 +3:21
Adam Barrett concedes a free kick for a foul on Jason Walker. Patrick McLaughlin crosses the ball in from the free kick, clearance by Leon Legge.90:00 +1:53
Michael Ingham takes the direct free kick.90:00 +1:53 Substitution
Substitution Lee Bullock joins the action as a substitute, replacing Alex Rodman.90:00 +1:53
Unfair challenge on Chris Smith by Danny Kedwell results in a free kick.90:00 +1:27
Unfair challenge on Charlie Lee by Jon Challinor results in a free kick. Free kick taken by Stuart Nelson.89:46
A cross is delivered by Jason Walker, Effort on goal by Matty Blair from deep inside the penalty area misses to the right of the goal.88:28
Outswinging corner taken right-footed by Chris Whelpdale from the right by-line, Charlie Lee takes a shot. Save made by Michael Ingham.87:59
Handball decision goes against Michael Potts. Free kick taken by Steven Gregory.87:42
Jason Walker produces a volleyed left-footed shot from 25 yards. Stuart Nelson makes a save.86:28
Patrick McLaughlin fouled by Cody McDonald, the ref awards a free kick. Michael Ingham takes the direct free kick.84:14
Myles Weston provided the assist for the goal.84:14 Goal scored
Goal! - Cody McDonald - Gillingham 1 - 1 York Cody McDonald grabs a headed goal from inside the box. Gillingham 1-1 York.84:14
The ball is delivered by Myles Weston,83:04
Inswinging corner taken by Patrick McLaughlin from the right by-line, clearance by Leon Legge.82:23
Foul by Adam Barrett on Jason Walker, free kick awarded. Free kick crossed by Patrick McLaughlin, Joe Martin manages to make a clearance.80:29 Substitution
Substitution Lanre Oyebanjo goes off and Jon Challinor comes on.
Shot by Chris Whelpdale from outside the box goes high over the target.76:38
Unfair challenge on Danny Kedwell by Chris Smith results in a free kick. Chris Whelpdale has a direct shot on goal from the free kick, save by Michael Ingham.76:20
The assistant referee signals for offside against Jason Walker. Stuart Nelson restarts play with the free kick.75:27
Corner taken by Joe Martin from the left by-line, save by Michael Ingham.71:27
Cody McDonald takes a shot. Save by Michael Ingham.70:42
Patrick McLaughlin concedes a free kick for a foul on Leon Legge. Direct free kick taken by Stuart Nelson.64:20
Drilled right-footed shot by Matty Blair. Save by Stuart Nelson.63:16
Myles Weston gives away a free kick for an unfair challenge on Scott Kerr. Michael Ingham takes the free kick.60:50
Charlie Lee takes a shot from 30 yards. Michael Ingham makes a save.57:49
The ball is delivered by Patrick McLaughlin, Chris Smith produces a header from deep inside the area and hits the post.57:49 Booking
Booking Booking for Steven Gregory for unsporting behaviour.57:35
Steven Gregory challenges Jason Walker unfairly and gives away a free kick.56:34
Corner from left by-line taken by Myles Weston.54:18 Substitution
Substitution Cody McDonald on for Adam Birchall.53:28
Matty Blair is penalised for handball and concedes a free kick. Charlie Lee takes the free kick.50:08
Free kick awarded for an unfair challenge on Myles Weston by Lanre Oyebanjo. Centre by Joe Martin, Leon Legge has a headed effort from close range and clears the crossbar.49:50
Danny Kedwell takes a shot. Save by Michael Ingham.47:51
Inswinging corner taken by Patrick McLaughlin from the right by-line played to the near post, clearance by Chris Whelpdale. Patrick McLaughlin takes a inswinging corner to the near post.47:28
Matty Blair has a drilled shot. Save by Stuart Nelson.45:01
The game restarts for the second half.45:01 Substitution
Substitution (Gillingham) makes a substitution, with Matt Fish coming on for Charlie Allen.45:00 +1:12 Half time
Half Time The ref blows to signal half-time.44:48
Corner from the right by-line taken by Patrick McLaughlin, clearance by Leon Legge.39:56
Corner taken by Charlie Allen, Danny Kedwell takes a shot. Michael Ingham makes a save.39:44
The ball is sent over by Myles Weston, clearance by Lanre Oyebanjo.38:38
Free kick awarded for a foul by Charlie Allen on Jason Walker. Direct free kick taken by Michael Ingham.37:33 Substitution
Substitution Andy Frampton goes off and Myles Weston comes on.36:39
Drilled left-footed shot by Patrick McLaughlin. Andy Frampton gets a block in.35:38
Headed effort from inside the area by Danny Kedwell misses to the right of the goal.33:40
Jason Walker gives away a free kick for an unfair challenge on Adam Barrett. Direct free kick taken by Stuart Nelson.32:27
Effort on goal by Charlie Lee from inside the penalty box misses to the right of the target.28:40
Corner taken right-footed by Charlie Allen.26:55
Jason Walker gives away a free kick for an unfair challenge on Charlie Allen. Stuart Nelson takes the free kick.23:32
Andy Frampton fouled by Patrick McLaughlin, the ref awards a free kick. Direct free kick taken by Stuart Nelson.22:13
Andy Frampton concedes a free kick for a foul on Scott Kerr. Free kick crossed by Jason Walker, Adam Barrett makes a clearance.20:55
Alex Rodman challenges Leon Legge unfairly and gives away a free kick. Direct free kick taken by Stuart Nelson.16:40
The assist for the goal came from Patrick McLaughlin.16:40 Goal scored
Goal! - Charlie Lee - Gillingham 0 - 1 York An own goal is conceded by Charlie Lee. Gillingham 0-1 York.16:15
Patrick McLaughlin takes a inswinging corner from the right by-line played to the near post.13:47
Steven Gregory gives away a free kick for an unfair challenge on Jason Walker. Free kick taken by Daniel Parslow.12:45
Andy Frampton is flagged offside by the assistant referee. Free kick taken by Michael Ingham.9:39
Shot from just outside the box by Danny Kedwell misses to the left of the target.8:31
Unfair challenge on Michael Potts by Chris Whelpdale results in a free kick. Lanre Oyebanjo takes the free kick.7:16
Free kick awarded for a foul by Charlie Allen on Jack O'Connell. Direct free kick taken by Michael Ingham.6:11
Free kick awarded for an unfair challenge on Joe Martin by Matty Blair. Free kick taken by Joe Martin.5:36
Charlie Allen has a headed effort at goal from deep inside the area missing to the right of the goal.2:52
The ball is swung over by Charlie Lee.1:01
Free kick awarded for an unfair challenge on Daniel Parslow by Adam Birchall. Lanre Oyebanjo takes the direct free kick.0:00
The game kicks-off.
Live data and text provided by our data suppliers