Dundee United got the better of local rivals Dundee in the quarter-finals of the Scottish Cup.
Jim McAlister fired the hosts level after Brian McLean had headed United into the lead early on.
But the visitors led at the break with Gary Mackay-Steven sweeping the ball under the body of Rab Douglas at the end of a swift counter-attack.
Dundee's Davide Grassi almost put the ball in his own net but Douglas prevented the own goal.
United join Celtic, Falkirk and the winner of Kilmarnock v Hibernian in Monday's semi-final draw.
After a predictably frenetic start, United won a free-kick on the right.
However, Dundee were unhappy they had not been awarded a throw-in the build-up, suspecting Mackay-Steven had dribbled the ball out of play.
When play re-started, an inviting Barry Douglas delivery swirled in towards the six-yard box and McLean rose highest to glance the ball into the net as goalkeeper Douglas leapt from his line.
The visitors' lead lasted only eight minutes though with Dundee conjuring a fine equaliser.
A throw-in was headed on to John Baird, who pivoted on the ball before teeing-up McAlister to rifle past Radoslaw Cierzniak.
John Brown's side had the initiative and Nicky Riley went down in the wake of Willo Flood's challenge in the area but referee Iain Brines booked the Dundee man for simulation.
The United defence had more pressure to deal with and Baird's low shot was blocked by the foot of Cierzniak.
And then, against the run of play, Stuart Armstrong slipped the ball through for Mackay-Steven to convert on the run and the winger was booked for his celebration.
Again Dundee chased a leveller and Riley's dipping shot was beaten out by Cierzniak.
Jackie McNamara's men knew another goal would likely end the tie as a contest and Michael Gardyne tested Douglas with a low drive 10 minutes into the second half.
Grassi's downward header was punched clear by Cierzniak and the Italian almost scored at the other end with a wayward defensive header that brought out the best in Douglas.
A melee involving several players following a clash between Grassi and United's Keith Watson was the most notable incident of the closing stages, both defenders booked for their part in the fracas.
Live Text Commentary
Full Time The referee ends the match.90:00 +0:07
Short corner taken by Stuart Armstrong from the left by-line.89:48
Stuart Armstrong decides to take the corner short.89:02
Foul by Gary Irvine on Barry Douglas, free kick awarded. Barry Douglas takes the free kick.88:07
Colin Nish challenges Barry Douglas unfairly and gives away a free kick. Barry Douglas takes the free kick.86:53
Free kick taken by Barry Douglas.86:53 Booking
Booking Gary Irvine shown a yellow card.86:46
Stuart Armstrong fouled by Gary Irvine, the ref awards a free kick.85:26 Booking
Booking Keith Watson is shown a yellow card for unsporting behaviour.85:14 Booking
Booking Davide Grassi goes into the referee's book.83:35
Inswinging corner taken by Barry Douglas from the right by-line, clearance by Gary Irvine.82:53
Unfair challenge on Stuart Armstrong by Gary Irvine results in a free kick. Free kick crossed by Willo Flood, Davide Grassi makes a clearance.82:26
John Baird delivers the ball.81:30
A cross is delivered by Brian Easton.79:26 Substitution
Substitution Colin Nish joins the action as a substitute, replacing Steven Milne.78:43
Gary Irvine challenges Stuart Armstrong unfairly and gives away a free kick. Barry Douglas takes the direct free kick.77:22
Free kick awarded for an unfair challenge on Gary Mackay-Steven by Brian Easton. Stuart Armstrong produces a strike on goal direct from the free kick.76:56
Brian Easton sends in a cross. Shot on goal by James McAlister from inside the box goes harmlessly over the target.75:03
The referee penalises Willo Flood for handball. Free kick taken by Rab Douglas.74:05
Inswinging corner taken from the right by-line by Barry Douglas, save by Rab Douglas.
Stuart Armstrong produces a cross, clearance made by Lewis Toshney.72:36
John Rankin is penalised for a handball. Free kick crossed left-footed by Ryan Conroy, clearance by Jon Daly.71:53 Substitution
Substitution (Dundee) makes a substitution, with Mark Stewart coming on for Nicky Riley.71:01
Nicky Riley is penalised for handball and concedes a free kick. Free kick crossed right-footed by Willo Flood, clearance made by Davide Grassi.69:16
Gary Irvine challenges Stuart Armstrong unfairly and gives away a free kick. Direct free kick taken by Barry Douglas.68:20
Corner taken by Ryan Conroy from the left by-line, Davide Grassi takes a shot. Save by Radoslaw Cierzniak.64:03 Substitution
Substitution (Dundee Utd) makes a substitution, with Richie Ryan coming on for Michael Gardyne.63:30
Nicky Riley produces a cross, clearance made by Brian McLean.63:03
Free kick awarded for an unfair challenge on Davide Grassi by Jon Daly. Free kick taken by Rab Douglas.60:25
Inswinging corner taken from the right by-line by Ryan Conroy, Jon Daly makes a clearance.59:57
Corner taken by Ryan Conroy. John Baird delivers the ball.58:41
John Baird produces a right-footed shot from just outside the box that misses to the right of the net.57:56
A cross is delivered by Keith Watson, clearance made by Lewis Toshney.57:46
Michael Gardyne sends in a cross.56:38
Sean Dillon gives away a free kick for an unfair challenge on John Baird. Lewis Toshney has a direct shot on goal from the free kick.55:06
The referee blows for offside. Rab Douglas takes the indirect free kick.54:45
Inswinging corner taken by Willo Flood from the left by-line played to the near post, Brian Easton makes a clearance.54:29
Michael Gardyne takes a shot. Save by Rab Douglas.54:04
Corner taken by Ryan Conroy from the right by-line to the near post, clearance made by John Rankin.53:57
The ball is crossed by Gary Irvine, blocked by Barry Douglas.51:09
Gary Mackay-Steven fouled by James McAlister, the ref awards a free kick. Willo Flood crosses the ball from the free kick right-footed from left channel, comfortable save by Rab Douglas.50:35
Corner from the right by-line taken by Ryan Conroy, save by Radoslaw Cierzniak.49:39
Inswinging corner taken by Ryan Conroy from the right by-line, save made by Radoslaw Cierzniak.48:44
The referee blows for offside against Steven Milne. Radoslaw Cierzniak takes the free kick.48:16
John Baird challenges Keith Watson unfairly and gives away a free kick. Free kick taken by Radoslaw Cierzniak.48:07
Brian Easton delivers the ball.47:15
Corner taken by Ryan Conroy from the right by-line, Brian McLean manages to make a clearance.45:49
Unfair challenge on John Baird by Sean Dillon results in a free kick. Ryan Conroy crosses the ball in from the free kick, clearance made by Brian McLean. Nicky Riley produces a right-footed shot from just outside the area that goes harmlessly over the target.45:01
The match restarts for the second half.45:00 +2:31 Half time
Half Time The referee calls an end to the first half.45:00 +1:43
Corner from left by-line taken by Willo Flood.44:35
Willo Flood gives away a free kick for an unfair challenge on Ryan Conroy. Ryan Conroy crosses the ball in from the free kick, save by Radoslaw Cierzniak.43:06
A cross is delivered by Barry Douglas, blocked by Gary Irvine. Inswinging corner taken by Willo Flood from the left by-line. Gary Mackay-Steven concedes a free kick for a foul on Gary Irvine. Rab Douglas takes the direct free kick.41:58
The referee gives a free kick against Willo Flood for handball. Free kick crossed left-footed by Ryan Conroy, Radoslaw Cierzniak makes a comfortable save.39:49
Corner taken by Barry Douglas played to the near post, Steven Milne makes a clearance.39:25
Gary Mackay-Steven takes a shot. Save made by Rab Douglas.38:25
James McAlister takes the inswinging corner, Davide Grassi takes a shot. Radoslaw Cierzniak makes a comfortable save.38:08
Nicky Riley takes a shot. Save by Radoslaw Cierzniak.35:02 Booking
Booking Booking for Gary Mackay-Steven.34:58
Assist by Stuart Armstrong.34:58 Goal scored
Goal! - Gary Mackay-Steven - Dundee 1 - 2 Dundee U Gary Mackay-Steven finds the back of the net with a goal from the edge of the area low into the middle of the goal. Dundee 1-2 Dundee Utd.33:10
Unfair challenge on Nicky Riley by John Rankin results in a free kick. Direct free kick taken by Ryan Conroy. John Baird takes a shot. Save by Radoslaw Cierzniak.29:40
Shot from just outside the box by James McAlister misses to the left of the goal.28:48
Inswinging corner taken left-footed by Ryan Conroy, clearance by Barry Douglas.28:17
Corner taken by James McAlister from the right by-line.27:01
The offside flag is raised against Jon Daly. Free kick taken by Davide Grassi.26:36
Unfair challenge on Barry Douglas by Nicky Riley results in a free kick. Barry Douglas takes the free kick.25:42
The ball is sent over by Nicky Riley, Brian McLean makes a clearance.23:53
Steven Milne takes a weak shot and missed to the right of the net.21:17
Radoslaw Cierzniak takes the direct free kick.20:34 Booking
Booking The referee shows Nicky Riley a yellow card for unsporting behaviour.18:58
Assist on the goal came from John Baird.18:58 Goal scored
Goal! - James McAlister - Dundee 1 - 1 Dundee U James McAlister scores a goal from the edge of the penalty box to the bottom right corner of the goal. Dundee 1-1 Dundee Utd.18:27
The official flags Jon Daly offside. Rab Douglas restarts play with the free kick.16:34
Sean Dillon gives away a free kick for an unfair challenge on John Baird. Strike comes in from Ryan Conroy from the free kick, save by Radoslaw Cierzniak.13:54
Nicky Riley crosses the ball, Sean Dillon manages to make a clearance.12:58
John Baird is flagged offside by the assistant referee. Free kick taken by Radoslaw Cierzniak.10:37
Assist by Barry Douglas.10:37 Goal scored
Goal! - Brian McLean - Dundee 0 - 1 Dundee U Brian McLean grabs a headed goal from close range. Dundee 0-1 Dundee Utd.9:49
Free kick awarded for an unfair challenge on Gary Mackay-Steven by Ryan Conroy. The ball is crossed by Barry Douglas,8:27
The ball is crossed by Michael Gardyne, Header from deep inside the area by Jon Daly goes harmlessly over the crossbar.7:37
Inswinging corner taken right-footed by Willo Flood played to the near post, clearance made by Ryan Conroy.6:26
The official flags Willo Flood offside. Free kick taken by Rab Douglas.0:19
The referee blows for offside. Davide Grassi restarts play with the free kick.0:00
The game kicks-off.
Live data and text provided by our data suppliers