Matty Blair's extra-time header took York City back to Wembley as Mansfield Town's Blue Square Bet Premier play-off semi-final hopes ended at Field Mill.
Blair converted Jason Walker's cross with nine minutes left to earn a 2-1 aggregate win after the first-leg draw.
Mansfield went down to 10 men when Ritchie Sutton was shown a second yellow card for a late tackle on Blair.
York's Wembley trip on 20 May will be their second in eight days, after their FA Trophy final with Newport County.
It will be York's fourth game at Wembley in three seasons - but that outcome was a little harsh on a Mansfield team who were marginally the better side over the full course of a pretty drab 90 minutes.
Mansfield, often accused of opting for a direct approach and an over reliance on the long throws of Exodus Geohaghon, just about edged an untidy first half.
The excellent Adam Murray came close for the Stags, but his shot, after fine work by Lindon Meikle, was brilliantly diverted wide by defender Danny Parslow.
Murray's midfield partner Gary Roberts, whose quality stood out on a bobbly pitch which did little to encourage a passing game, also saw a fierce free-kick blocked.
York looked more measured in possession, allied to the pace of their front three, Ashley Chambers, Walker and Blair.
They were kept quiet before the break but, as entertainment levels increased after the interval, so did their threat.
Walker had a shot blocked, as did the impressive Blair, who also tested Alan Marriott with a decent low effort after cutting in from the right.
Mansfield were without 29-goal top scorer Matt Green following his red card in the first leg. But wing duo Louis Briscoe and Meikle were finding more room as the game became stretched.
York at Wembley
- 2009 - Lost to Stevenage in FA Trophy final
- 2010 - Lost to Oxford in Blue Square Premier play-off final
- 2012 - FA Trophy final v Newport (12 May)
- 2012 - Blue Square Bet Premier play-off final (20 May)
Briscoe saw his shot beaten away by York keeper Michael Ingham and Meikle shot into the side netting after beating two men.
For the final 30 minutes, the Stags were on top, with Murray and Roberts bossing midfield and Geohaghon's torpedo throws and the pace and trickery of main threat Meikle always looking likely to bring a goal.
But York also had their chances, a combination of sloppy passing in the final third, a reluctance to shoot and some last-ditch defending ensuring that it stayed 0-0.
In extra time, Meikle almost broke the deadlock but his 20 yard-effort was brilliantly tipped over by Ingham before the rare moment of quality which decided the contest.
Blair headed home a brilliant left-wing cross from Walker, who spurned several openings for a clinching second as Mansfield threw everything forward in front of a sell-out crowd.
But, with a man advantage after Sutton's red card, Gary Mills's FA Trophy finalists booked in for yet another Wembley appearance.
VIEW FROM THE DRESSING ROOM
Mansfield Town manager Paul Cox told BBC Radio Nottingham:
"There's a lot of heartache in the dressing room. I personally feel we've let a lot of people down.
"A lot of people have come out and supported us. But all the chances, balls that have bounced in the box, we just couldn't convert into a goal.
"Looking at the game as a whole, it was always probably going to be one goal that won the game.
"We've got to come back stronger now."
York City boss Gary Mills told BBC Radio York:
"They've had a great run and all credit to them but, when you come into these play-off situations, it's about the two games.
"We got done with the throw for the goal at home and we had to concentrate a lot.
"But we got a clean sheet and we defended for our lives.
"It's been an unbelievable few days and we've had an unbelievable season, but what a way to finish, two Wembley trips."
- 01 Marriott
- 06 Riley Booked
- 16 O'Neill
- 17 Sutton Dismissed after an earlier booking
- 26 Geohaghan
- 11 Murray Booked
- 21 Howell (Rhead - 64' )
- 35 Roberts
- 07 Briscoe Booked (Stevenson - 104' )
- 15 Dyer
- 24 Meikle
- 23 Redmond
- 05 Thompson
- 29 Andrew
- 08 Stevenson
- 09 Rhead
- 24 Ingham
- 03 Meredith
- 04 Smith
- 20 Challinor (Moke - 60' )
- 23 Doig Booked (Fyfield - 87' )
- 02 Oyebanjo Booked
- 06 Parslow
- 26 McLaughlin Booked (Potts - 72' )
- 09 Walker Booked
- 10 Chambers
- 17 Blair
- 01 Musselwhite
- 16 Fyfield
- 14 Potts
- 18 Moke
- 07 Reed
Live Text Commentary
The match is over.120:00 +3:12
Jason Walker has an effort at goal from 12 yards. Save by Alan Marriott.120:00 +2:56
Jason Walker takes a shot. Save by Alan Marriott.120:00 +2:30
Adam Murray delivers the ball.120:00 +1:55 Booking
Booking Jason Walker receives a caution.120:00 +1:47
Free kick awarded for an unfair challenge on Alan Marriott by Jason Walker. Alan Marriott takes the free kick.120:00 +0:42
James Meredith challenges Matt Rhead unfairly and gives away a free kick. Free kick taken by Luke O'Neill.120:00 +0:13
Jason Walker takes a shot from 12 yards. Clearance made by Luke O'Neill.119:39
Free kick awarded for a foul by Martin Riley on Michael Ingham. Michael Ingham restarts play with the free kick.117:36
Free kick awarded for a foul by Ashley Chambers on Luke O'Neill. Free kick taken by Alan Marriott.114:15
Martin Riley concedes a free kick for a foul on Jason Walker. Direct free kick taken by Michael Potts.113:16
Ross Dyer takes a shot. Save by Michael Ingham.111:55 Dismissal
Dismissal Ritchie Sutton is shown a red card for second bookable offence.111:41
Free kick awarded for an unfair challenge on Matty Blair by Ritchie Sutton. Direct free kick taken by Matty Blair.110:16
Assist on the goal came from Jason Walker.110:16 Goal scored
Goal! - Matty Blair - Mansfield 0 - 1 York Matty Blair grabs a headed goal from close range. Mansfield 0 (1)-(2) 1 York.109:53
A cross is delivered by Jamal Fyfield, Ross Dyer gets a block in.109:30
Ashley Chambers sends in a cross, blocked by Luke O'Neill.109:16
The ball is swung over by Adriano Moke.108:45
Lee Stevenson has an effort at goal from 25 yards. Save by Michael Ingham.
Booking The referee shows Adam Murray a yellow card.106:19
Lindon Meikle fouled by Lanre Oyebanjo, the ref awards a free kick. Luke O'Neill delivers the ball from the free kick right-footed from right wing, Adam Murray concedes a free kick for a foul on Michael Potts. Michael Ingham takes the direct free kick.105:01
The second half of extra time begins.105:00 +0:52
The ball is delivered by Ashley Chambers, Adriano Moke produces a drilled right-footed shot from 18 yards. Alan Marriott makes a save.104:34
The ball is swung over by Lindon Meikle, clearance made by Chris Smith.103:23
Jason Walker sends in a cross, save by Alan Marriott.103:23 Substitution
Substitution Louis Briscoe leaves the field to be replaced by Lee Stevenson.103:23 Booking
Booking Ritchie Sutton is shown a yellow card.102:59
Ritchie Sutton challenges Jason Walker unfairly and gives away a free kick.101:45
Luke O'Neill takes the outswinging corner, Martin Riley has a headed effort from close range and clears the bar.101:31
Drilled right-footed shot by Lindon Meikle. Save by Michael Ingham.99:37
The ball is crossed by Jamal Fyfield, save made by Alan Marriott.98:36 Booking
Booking Louis Briscoe receives a caution for dissent.97:32
Drilled right-footed shot by Matty Blair. Ritchie Sutton gets a block in.96:29
Michael Potts has an effort at goal from the edge of the area that misses to the right of the target.96:15
Matty Blair decides to take the corner short.96:04
Matty Blair delivers the ball, Exodus Geohaghon manages to make a clearance.95:47
Louis Briscoe crosses the ball.95:21
Adam Murray fouled by James Meredith, the ref awards a free kick. Luke O'Neill takes the direct free kick.94:26
Corner taken right-footed by Luke O'Neill from the right by-line, comfortable save by Michael Ingham.94:05
The ball is delivered by Ross Dyer, clearance by Chris Smith.93:34
Adriano Moke produces a cross, clearance by Martin Riley.92:24
Michael Potts delivers the ball, clearance made by Matt Rhead.91:50
Outswinging corner taken right-footed by Ashley Chambers, Matt Rhead manages to make a clearance.91:39
The ball is delivered by Matty Blair, Ritchie Sutton gets a block in.90:00 +4:48
The whistle goes for the end of normal time.90:00 +3:38
Centre by Lindon Meikle, James Meredith gets a block in.90:00 +1:29
Unfair challenge on Gary Roberts by Michael Potts results in a free kick. Free kick taken by Alan Marriott.90:00 +0:39
The ball is swung over by Exodus Geohaghon, Chris Smith manages to make a clearance.89:46
Shot by Matt Rhead. Chris Smith gets a block in.89:20 Booking
Booking Lanre Oyebanjo goes into the book.88:57
Free kick awarded for a foul by Lanre Oyebanjo on Lindon Meikle. Free kick taken by Alan Marriott.88:16
Adam Murray produces a right-footed shot from just outside the area that goes harmlessly over the bar.86:59
Michael Potts challenges Ross Dyer unfairly and gives away a free kick. Alan Marriott takes the direct free kick.86:25 Substitution
Substitution Jamal Fyfield is brought on as a substitute for Chris Doig.83:26
Lindon Meikle delivers the ball, save made by Michael Ingham.82:46
Ashley Chambers challenges Adam Murray unfairly and gives away a free kick. Free kick taken by Luke O'Neill.80:41
Direct strike on goal from the free kick comes in from Louis Briscoe, Ashley Chambers gets a block in.80:41 Booking
Booking Chris Doig booked for unsporting behaviour.80:25
Chris Doig gives away a free kick for an unfair challenge on Exodus Geohaghon.79:01
Jason Walker fouled by Adam Murray, the ref awards a free kick. Lanre Oyebanjo delivers the ball from the free kick right-footed from right channel, save made by Alan Marriott.77:19
Chris Smith concedes a free kick for a foul on Matt Rhead. Luke O'Neill crosses the ball in from the free kick.75:55
Matty Blair produces a cross, Shot on goal by Adriano Moke from just inside the area clears the crossbar.74:29
Unfair challenge on Luke O'Neill by Jason Walker results in a free kick. Alan Marriott takes the free kick.72:22
A cross is delivered by Louis Briscoe.71:37 Substitution
Substitution (York) makes a substitution, with Michael Potts coming on for Patrick McLaughlin.71:27
Handball decision goes against Daniel Parslow. Alan Marriott restarts play with the free kick.70:36
Martin Riley gives away a free kick for an unfair challenge on Jason Walker. Lanre Oyebanjo takes the direct free kick.70:06
Effort from the edge of the penalty area by Lindon Meikle goes wide of the left-hand post.69:30
The ball is sent over by Luke O'Neill, Adriano Moke gets a block in.67:52
Corner taken by Luke O'Neill from the left by-line, clearance made by Lanre Oyebanjo.67:24
Outswinging corner taken from the right by-line by Luke O'Neill, Lanre Oyebanjo makes a clearance.67:17
Luke O'Neill produces a cross, clearance by Chris Doig.65:48
Matt Rhead challenges Lanre Oyebanjo unfairly and gives away a free kick. Michael Ingham takes the free kick.63:46
Michael Ingham fouled by Adam Murray, the ref awards a free kick. Michael Ingham restarts play with the free kick.63:22 Substitution
Substitution Anthony Howell goes off and Matt Rhead comes on.62:48
Louis Briscoe has an effort at goal from 6 yards. Save by Michael Ingham.61:45
Daniel Parslow challenges Lindon Meikle unfairly and gives away a free kick. Free kick taken by Luke O'Neill.59:51 Substitution
Substitution Adriano Moke on for Jon Challinor.59:19
Centre by Lindon Meikle, Chris Doig makes a clearance.59:05
A cross is delivered by Luke O'Neill, clearance by Chris Doig.58:53
Luke O'Neill produces a cross, Chris Smith makes a clearance.58:34
Louis Briscoe has a drilled shot. Michael Ingham makes a save.56:33
Inswinging corner taken from the left by-line by Lanre Oyebanjo, Exodus Geohaghon makes a clearance.55:42
The assistant referee flags for offside against Ross Dyer. Free kick taken by Michael Ingham.55:15
Shot by Matty Blair. Alan Marriott makes a comfortable save.53:49
Ritchie Sutton gives away a free kick for an unfair challenge on Jason Walker. Jon Challinor restarts play with the free kick.53:21
A cross is delivered by Louis Briscoe, Chris Smith gets a block in.51:41
Matty Blair has an effort at goal from 18 yards. Save by Alan Marriott.50:06
The ball is delivered by Jon Challinor, blocked by Martin Riley.49:55
Shot from 25 yards from Lanre Oyebanjo. Blocked by Martin Riley.49:26
Shot by Jason Walker from 12 yards. Blocked by Gary Roberts.49:00
Free kick awarded for an unfair challenge on Daniel Parslow by Anthony Howell. Jon Challinor takes the free kick.45:01
The second half kicks off.45:00 +1:42 Half time
Half Time The half-time whistle blows.45:00 +0:29
Free kick awarded for a foul by Jon Challinor on Lindon Meikle. Free kick crossed right-footed by Luke O'Neill from left wing, Adam Murray challenges Jon Challinor unfairly and gives away a free kick. Free kick taken by Michael Ingham.44:11
Corner taken by Lanre Oyebanjo, Luke O'Neill makes a clearance.43:37
Anthony Howell gives away a free kick for an unfair challenge on Jason Walker. Direct free kick taken by Chris Smith.42:01
The ball is crossed by Patrick McLaughlin, Ashley Chambers concedes a free kick for a foul on Luke O'Neill. Alan Marriott takes the direct free kick.41:40
Jason Walker fouled by Ritchie Sutton, the ref awards a free kick. Jason Walker takes the free kick.40:29
Ritchie Sutton delivers the ball, clearance by Chris Smith.39:15 Booking
Booking Patrick McLaughlin is shown a yellow card.38:48
Patrick McLaughlin gives away a free kick for an unfair challenge on Gary Roberts. Alan Marriott restarts play with the free kick.36:58
Ross Dyer is ruled offside. Michael Ingham takes the free kick.36:21
Chris Doig fouled by Martin Riley, the ref awards a free kick. Michael Ingham takes the free kick.34:38
Strike comes in from Patrick McLaughlin from the free kick.34:38 Booking
Booking The referee books Martin Riley for unsporting behaviour.33:49
Foul by Martin Riley on Lanre Oyebanjo, free kick awarded.31:06
Free kick awarded for a foul by Daniel Parslow on Anthony Howell. The free kick is swung in right-footed by Luke O'Neill.26:41
Ross Dyer fouled by Lanre Oyebanjo, the ref awards a free kick. Strike comes in from Gary Roberts from the free kick, Lanre Oyebanjo gets a block in.26:18
A cross is delivered by Ashley Chambers, clearance made by Ritchie Sutton.25:01
Ross Dyer fouled by Chris Doig, the ref awards a free kick. Free kick crossed right-footed by Luke O'Neill, clearance by James Meredith.24:34
Ashley Chambers is flagged offside by the assistant referee. Alan Marriott takes the free kick.24:09
The ball is swung over by Louis Briscoe, save by Michael Ingham.21:03
Corner from the right by-line taken by Luke O'Neill, save made by Michael Ingham.19:08
Chris Doig fouled by Ross Dyer, the ref awards a free kick. Michael Ingham restarts play with the free kick.17:51
Lindon Meikle has an effort at goal from 18 yards. Save by Michael Ingham.17:26
Louis Briscoe takes a shot from 18 yards. Lanre Oyebanjo gets a block in.17:02
Outswinging corner taken right-footed by Luke O'Neill played to the near post, Chris Doig manages to make a clearance.16:32
Adam Murray takes the chance to get an effort at goal. Blocked by Patrick McLaughlin.15:17
Unfair challenge on Jason Walker by Exodus Geohaghon results in a free kick. Strike on goal comes in from Jason Walker from the free kick.14:46
Lindon Meikle concedes a free kick for a foul on Matty Blair. Free kick taken by Michael Ingham.14:10
Effort on goal by Patrick McLaughlin from just inside the box goes harmlessly over the target.13:41
Inswinging corner taken by Lanre Oyebanjo from the left by-line, clearance made by Exodus Geohaghon.12:18
Ross Dyer challenges Daniel Parslow unfairly and gives away a free kick. Michael Ingham takes the direct free kick.11:27
Corner taken by Luke O'Neill from the right by-line, Adam Murray has an effort at goal. Patrick McLaughlin gets a block in.11:20
Gary Roberts crosses the ball, blocked by James Meredith.9:35
The referee blows for offside. Chris Doig restarts play with the free kick.9:00
Louis Briscoe concedes a free kick for a foul on James Meredith. Free kick taken by James Meredith.2:42
Unfair challenge on Gary Roberts by Lanre Oyebanjo results in a free kick. Free kick taken by Luke O'Neill.1:11
Gary Roberts challenges James Meredith unfairly and gives away a free kick. Lanre Oyebanjo restarts play with the free kick.0:00
The game kicks-off.
Live data and text provided by our data suppliers