Shay Logan scored twice as 10-man Aberdeen came from behind to beat Ross County in a chaotic Dingwall battle.
Dons defender Mark Reynolds was sent off for felling goal-bound Alex Schalk on 26 minutes, with Ian McShane stroking in the resultant free-kick.
But Adam Rooney soon earned and scored a penalty, and Logan bundled in a cross before the break to put Aberdeen ahead.
The right-back dispatched his second after the break, but a McShane rocket made for tense last eight minutes.
Aberdeen move to within three points of Premiership leaders Celtic - who have played a game fewer - and six clear of third-place Hearts.
The visitors were immediately on the offensive, with Derek McInnes' side demonstrating great tempo and desire.
Jonny Hayes fired in a dipping effort that Scott Fox tipped over and the goalkeeper also parried a low Niall McGinn shot, before Rooney headed over a Logan cross.
The hosts spurned opportunities of their own, though.
Michael Gardyne released Richard Foster, but he fired too close to Scott Brown - playing in place of Danny Ward, who was recalled by Liverpool last week.
Schalk then claimed for a penalty after Ash Taylor seemed to catch him with his knee, but referee Crawford Allan allowed an advantage upon which County could not capitalise. Furious manager Jim McIntyre was spoken to by the official.
The action reached a crescendo when Schalk retrieved Brian Graham's hooked pass, cutting across Reynolds before being taken down on the edge of the box.
Reynolds was dismissed and the punishment was compounded when McShane drilled a low shot under the wall and past the static Brown.
It was a pulsating contest and, against the odds, Aberdeen struck back suddenly.
The ball deflected into Rooney's path in the area and Chris Robertson inexplicably hauled him down. County were furious again, but the striker slotted the penalty.
Aberdeen then seized the lead. Hayes whipped a ball across the six-yard box, Logan contested, and the ball seemed to striker Jamie Reckord before looping into the net.
Play raced from end to end, Graham and Taylor narrowly missing with headers, and Hayes failing to finish a mesmeric dancing run towards goal.
Graham saw another header tipped away before Brown recovered superbly to deny Schalk.
Rooney then struck across Fox, who saved and scurried back to stop the ball edging over the line.
All of this before half-time.
The second period was understandably more muted but Aberdeen deserve real credit for their performance as they kept County busy and at bay for most of the half.
The decisive goal came when Graeme Shinnie drilled in a cross, Rooney showed great awareness to flick on and Logan was there to finish.
The game seemed to be petering out until McShane evaded Hayes, drove towards goal and thundered a shot away from Brown to set up a fantastic finish. But Aberdeen held on for an impressive victory.
Full Time Match ends, Ross County 2, Aberdeen 3.
90:00 +3:39 Full timeFull Time Second Half ends, Ross County 2, Aberdeen 3.
90:00 +3:12Corner, Ross County. Conceded by Barry Robson.
90:00 +2:11Corner, Ross County. Conceded by Shaleum Logan.
90:00 +0:28Foul by Raffaele De Vita (Ross County).
90:00 +0:28Craig Storie (Aberdeen) wins a free kick in the defensive half.
88:57Attempt saved. Michael Gardyne (Ross County) left footed shot from outside the box is saved in the top centre of the goal.
88:08Attempt saved. Jackson Irvine (Ross County) left footed shot from outside the box is saved in the top centre of the goal.
86:38 SubstitutionSubstitution Substitution, Aberdeen. Peter Pawlett replaces Niall McGinn.
86:01 SubstitutionSubstitution Substitution, Aberdeen. Barry Robson replaces Adam Rooney.
84:46Attempt missed. Brian Graham (Ross County) right footed shot from outside the box is just a bit too high.
84:00Jackson Irvine (Ross County) wins a free kick in the attacking half.
83:56Foul by Graeme Shinnie (Aberdeen).
81:32 Goal scoredGoal! Goal! Ross County 2, Aberdeen 3. Ian McShane (Ross County) right footed shot from outside the box to the top left corner. Assisted by Raffaele De Vita.
78:17Corner, Aberdeen. Conceded by Richard Foster.
76:33Attempt missed. Greg Morrison (Ross County) right footed shot from the centre of the box is close, but misses to the right.
74:50Attempt missed. Andrew Davies (Ross County) right footed shot from outside the box is just a bit too high.
74:20Corner, Ross County. Conceded by Andrew Considine.
73:36 BookingBooking Kenny McLean (Aberdeen) is shown the yellow card for a bad foul.
73:31Michael Gardyne (Ross County) wins a free kick in the attacking half.
Foul by Kenny McLean (Aberdeen).
70:13 SubstitutionSubstitution Substitution, Ross County. Greg Morrison replaces Alex Schalk.
67:16Attempt missed. Jackson Irvine (Ross County) right footed shot from outside the box misses to the right.
59:36 Goal scoredGoal! Goal! Ross County 1, Aberdeen 3. Shaleum Logan (Aberdeen) right footed shot from very close range to the high centre of the goal. Assisted by Adam Rooney.
58:21Brian Graham (Ross County) wins a free kick in the attacking half.
58:21Foul by Adam Rooney (Aberdeen).
57:39Foul by Chris Robertson (Ross County).
57:39Jonny Hayes (Aberdeen) wins a free kick in the defensive half.
55:40Michael Gardyne (Ross County) wins a free kick in the attacking half.
55:40Foul by Graeme Shinnie (Aberdeen).
54:52Attempt missed. Adam Rooney (Aberdeen) header from the centre of the box is close, but misses to the right.
54:32Corner, Aberdeen. Conceded by Richard Foster.
53:27Corner, Aberdeen. Conceded by Scott Fox.
53:20Attempt saved. Shaleum Logan (Aberdeen) right footed shot from the right side of the box is saved in the bottom right corner.
50:37Attempt saved. Jackson Irvine (Ross County) right footed shot from the left side of the six yard box is saved in the centre of the goal.
49:53Michael Gardyne (Ross County) wins a free kick in the attacking half.
49:53Foul by Graeme Shinnie (Aberdeen).
46:06Corner, Aberdeen. Conceded by Chris Robertson.
45:00Second Half begins Ross County 1, Aberdeen 2.
45:00 SubstitutionSubstitution Substitution, Ross County. Jackson Irvine replaces Stewart Murdoch.
45:00 SubstitutionSubstitution Substitution, Ross County. Raffaele De Vita replaces Marcus Fraser.
45:00 +2:01 Half timeHalf Time First Half ends, Ross County 1, Aberdeen 2.
45:00Chris Robertson (Ross County) wins a free kick in the attacking half.
45:00Foul by Adam Rooney (Aberdeen).
43:51Corner, Ross County. Conceded by Shaleum Logan.
43:11Attempt saved. Adam Rooney (Aberdeen) right footed shot from the centre of the box is saved in the bottom left corner.
42:41Foul by Andrew Davies (Ross County).
42:41Adam Rooney (Aberdeen) wins a free kick in the defensive half.
42:32Attempt saved. Alex Schalk (Ross County) right footed shot from the centre of the box is saved in the centre of the goal.
42:20Attempt saved. Brian Graham (Ross County) header from the centre of the box is saved in the bottom right corner.
41:07Attempt missed. Jonny Hayes (Aberdeen) left footed shot from the centre of the box is just a bit too high.
39:40Attempt missed. Ash Taylor (Aberdeen) header from the centre of the box is close, but misses to the right.
39:03Corner, Aberdeen. Conceded by Chris Robertson.
38:09Attempt missed. Brian Graham (Ross County) header from the centre of the box is close, but misses to the right.
37:37Corner, Ross County. Conceded by Graeme Shinnie.
35:16 Goal scoredGoal! Goal! Ross County 1, Aberdeen 2. Shaleum Logan (Aberdeen) right footed shot from very close range to the bottom right corner. Assisted by Jonny Hayes.
32:26 Goal scoredGoal! Goal! Ross County 1, Aberdeen 1. Adam Rooney (Aberdeen) converts the penalty with a right footed shot to the bottom right corner.
32:03 BookingBooking Chris Robertson (Ross County) is shown the yellow card for a bad foul.
31:36Penalty conceded by Chris Robertson (Ross County) after a foul in the penalty area.
31:36Penalty Aberdeen. Adam Rooney draws a foul in the penalty area.
31:13Foul by Ian McShane (Ross County).
31:13Jonny Hayes (Aberdeen) wins a free kick in the attacking half.
28:54Attempt missed. Niall McGinn (Aberdeen) right footed shot from the right side of the box is just a bit too high.
27:35 SubstitutionSubstitution Substitution, Aberdeen. Andrew Considine replaces David Goodwillie.
26:27 Goal scoredGoal! Goal! Ross County 1, Aberdeen 0. Ian McShane (Ross County) from a free kick with a right footed shot to the bottom left corner.
25:50 DismissalDismissal Mark Reynolds (Aberdeen) is shown the red card.
25:39Alex Schalk (Ross County) wins a free kick in the defensive half.
25:39Foul by Mark Reynolds (Aberdeen).
24:40Brian Graham (Ross County) wins a free kick in the defensive half.
24:40Foul by Mark Reynolds (Aberdeen).
21:47Ian McShane (Ross County) wins a free kick in the defensive half.
21:47Foul by Graeme Shinnie (Aberdeen).
21:01Corner, Ross County. Conceded by Mark Reynolds.
20:34Brian Graham (Ross County) wins a free kick in the defensive half.
20:34Foul by Mark Reynolds (Aberdeen).
16:16Corner, Ross County. Conceded by Mark Reynolds.
15:18Corner, Ross County. Conceded by Scott Brown.
15:09Attempt saved. Richard Foster (Ross County) right footed shot from outside the box is saved in the top centre of the goal.
13:41Attempt missed. Kenny McLean (Aberdeen) left footed shot from outside the box is just a bit too high.
13:08Mark Reynolds (Aberdeen) wins a free kick in the defensive half.
13:08Foul by Brian Graham (Ross County).
10:15Foul by Jonny Hayes (Aberdeen).
10:15Andrew Davies (Ross County) wins a free kick on the right wing.
8:23Corner, Aberdeen. Conceded by Chris Robertson.
7:44Foul by David Goodwillie (Aberdeen).
7:44Marcus Fraser (Ross County) wins a free kick on the right wing.
7:05Attempt missed. Adam Rooney (Aberdeen) header from the centre of the box is close, but misses to the left.
5:40Corner, Aberdeen. Conceded by Michael Gardyne.
5:26Attempt saved. Niall McGinn (Aberdeen) right footed shot from outside the box is saved in the bottom left corner.
3:57Corner, Aberdeen. Conceded by Marcus Fraser.
2:15Ash Taylor (Aberdeen) wins a free kick in the attacking half.
2:15Foul by Brian Graham (Ross County).
1:25Corner, Aberdeen. Conceded by Scott Fox.
0:20Corner, Aberdeen. Conceded by Marcus Fraser.
0:00First Half begins.
0:00Lineups are announced and players are warming up.
Live data and text provided by our data suppliers