Match ends, Aberdeen 4, Queen of the South 1.
Sam Cosgrove scored two of Aberdeen's four second-half goals as they beat Championship side Queen of the South to reach the Scottish Cup quarter-finals.
Niall McGinn's interval introduction was pivotal; the winger scored within 90 seconds, then crossed for Andrew Considine and Cosgrove to head in.
Cosgrove's penalty - his 16th goal of the season - made it 4-1.
At 1-0, veteran Stephen Dobbie had scudded Queens level with a stunning 38th goal of the season.
But Derek McInnes' Premiership side recovered from that and have now reached a domestic cup quarter-final for the ninth time in 12 attempts.
Considine had scored twice in the 4-3 defeat by Queens in the 2008 semi-final and, for long periods, another cup shock at the hands of the Dumfries side was a very real prospect.
However Considine, who scored the winner in a 2012 fifth-round replay as Aberdeen edged past Queens, was on target again, bulleted in a header to ease Aberdeen's nerves after Dobbie's leveller.
The longer the second half went on, the more dominant Aberdeen became, and Cosgrove made the game safe when he rolled home a penalty after Andy Stirling was penalised for handball.
McGinn turns the game - analysis
BBC Scotland's Tyrone Smith at Pittodrie
The term "super sub" is used from time to time, and McGinn was just that. Introduced at the break, he completely turned the game Aberdeen's way. And make no mistake, this was a game that looked like it could get a bit sticky for the the Premiership side before he entered the fray.
Scoring a goal, and setting up another two, this was like the McGinn of old, and McInnes will be hoping that can be a catalyst for the Northern Ireland international to really kick on this season.
Special mention must go to Queen of the South striker Dobbie. His stunning strike - goal number 38 of the season - was special, very special.
'For 60 minutes, there was nothing in it' - reaction
Aberdeen manager Derek McInnes: "Niall's had a huge impact on the game. I did think about starting him to stretch them.
"It wasn't perfect, but it would be wrong not to acknowledge Stephen Dobbie's strike. People may have thought we would wipe the floor with them but it's never like that."
Queen of the South manager Gary Naysmith: "I think 4-1 is probably a bit harsh. Derek [McInnes] has made a good substitution at half-time and brought on McGinn. He's probably been man of the match.
"We've got to take the positives. For 60 minutes there was nothing between the teams. We scored a fantastic goal. The players kept going, they were credit to the club today. We didn't sit back."
Line-ups
Aberdeen
Formation 4-4-1-1
- 1Lewis
- 2LoganSubstituted forDevlinat 74'minutes
- 28Hoban
- 4Considine
- 29Lowe
- 11Mackay-StevenSubstituted forWilsonat 79'minutes
- 19Ferguson
- 3Shinnie
- 7Stewart
- 17MaySubstituted forMcGinnat 45'minutes
- 16CosgroveBooked at 82mins
Substitutes
- 8Gleeson
- 9Wilson
- 10McGinn
- 18Devlin
- 20Cerny
- 21Ball
- 27McLennan
Queen of Sth
Formation 4-4-2
- 1Martin
- 2MercerSubstituted forAirdat 75'minutes
- 30Maguire
- 4Fordyce
- 3Marshall
- 7Stirling
- 6Doyle
- 14LowBooked at 39minsSubstituted forMcGrathat 70'minutes
- 8Jacobs
- 11Dobbie
- 25Dykes
Substitutes
- 9Aird
- 12McGrath
- 17Murray
- 20Leighfield
- 27Irving
- Referee:
- Euan Anderson
- Attendance:
- 7,857
Match Stats
- Possession
- Home58%
- Away42%
- Shots
- Home16
- Away5
- Shots on Target
- Home9
- Away4
- Corners
- Home5
- Away2
- Fouls
- Home11
- Away12
Live Text
Post update
Full Time
Second Half ends, Aberdeen 4, Queen of the South 1.
Post update
Attempt missed. Lewis Ferguson (Aberdeen) right footed shot from outside the box is too high.
Post update
Attempt saved. Lewis Ferguson (Aberdeen) right footed shot from outside the box is saved in the top centre of the goal.
Post update
Foul by Graeme Shinnie (Aberdeen).
Post update
Andy Stirling (Queen of the South) wins a free kick in the defensive half.
Post update
Lewis Ferguson (Aberdeen) wins a free kick in the defensive half.
Post update
Foul by Lyndon Dykes (Queen of the South).
Booking
Sam Cosgrove (Aberdeen) is shown the yellow card for a bad foul.
Post update
Foul by Sam Cosgrove (Aberdeen).
Post update
Andy Stirling (Queen of the South) wins a free kick in the defensive half.
Post update
Attempt saved. Lyndon Dykes (Queen of the South) right footed shot from the centre of the box is saved in the bottom right corner.
Substitution
Substitution, Aberdeen. James Wilson replaces Gary Mackay-Steven.
Post update
Attempt missed. Sam Cosgrove (Aberdeen) right footed shot from very close range misses to the right.
Substitution
Substitution, Queen of the South. Fraser Aird replaces Scott Mercer.
Substitution
Substitution, Aberdeen. Michael Devlin replaces Shaleum Logan because of an injury.
Post update
Delay in match Shaleum Logan (Aberdeen) because of an injury.
Goal!
Goal! Aberdeen 4, Queen of the South 1. Sam Cosgrove (Aberdeen) converts the penalty with a right footed shot to the bottom right corner.
Post update
Penalty conceded by Andy Stirling (Queen of the South) with a hand ball in the penalty area.
Post update
Lewis Ferguson (Aberdeen) wins a free kick on the left wing.