Teenage forward Steven Ross netted his first senior goal as Ross County defeated Aberdeen in Dingwall.
County moved ahead through Mark Reynolds' headed own goal but the Dons could have been level by the break with Gavin Rae and Scott Vernon going close.
Ross finished well with a shot across the bows of Jamie Langfield early in the second half.
Niall McGinn pulled one back for Aberdeen but the visitors could not find a leveller.
Aberdeen went into the match knowing victory would move them above Scottish Premier League leaders Celtic.
And while the Dons enjoyed plenty of possession and territory in the first half, it was County who had the better first-half chances.
Grant Munro almost got a telling touch on Richard Brittain's inswinging free-kick before Brittain fired over from 35 yards.
Langfield came under pressure after dithering on a passback and his attempted clearance was straight at the onrushing Rocco Quinn.
However, Langfield reacted quickly to palm away the County midfielder's header.
Niall McGinn had a shot blocked inside the hosts' penalty area before County opened the scoring.
Another searching Brittain free-kick into a crowded area was nodded past Langfield by Reynolds.
The Dons were quickly presented with an excellent chance to level as Marc Fitzpatrick's wayward header across his own box was intercepted by Rae and the midfielder's curling strike rattled the bar.
And another mistake, this time a short Brittain passback, sent Vernon through on goal but the striker stabbed his shot wide as Michael Fraser raced from his line.
Aberdeen continued to press at the start of the second half and Russell Anderson's low shot was blocked after the captain had wandered forward from defence.
And County soon doubled their lead with Ross latching on to Brittain's through pass and confidently beating Langfield.
However Aberdeen responded, and after Vernon had headed wide his replacement Jonny Hayes weaved his way to the byeline to set up the in-form McGinn for an easy tap-in.
The Dons continued to press but their chances of avoiding a first league defeat since the opening day of the season ended when Rae headed wide in injury time.
And County's win moves them level on points with seventh-place Kilmarnock.
Live Text Commentary
Full Time The final whistle is blown by the referee.90:00 +1:37
Headed effort from deep inside the area by Gavin Rae misses to the left of the goal.90:00 +0:19
Jamie Langfield restarts play with the free kick.90:00 +0:19 Booking
Booking Booking for Colin McMenamin.90:00 +0:11
Colin McMenamin challenges Russell Anderson unfairly and gives away a free kick.88:43
Stuart Kettlewell concedes a free kick for a foul on Johnny Hayes. Jamie Langfield takes the indirect free kick.84:31
Inswinging corner taken by Johnny Hayes.83:51 Booking
Booking Marc Fitzpatrick receives a yellow card for time wasting.80:20 Substitution
Substitution (Ross County) makes a substitution, with Alex Cooper coming on for Iain Vigurs.79:52 Substitution
Substitution Colin McMenamin is brought on as a substitute for Steven Ross.79:10
Russell Anderson has a header from inside the six-yard box and clears the crossbar.78:31
Free kick awarded for an unfair challenge on Ryan Fraser by Scott Boyd. Ryan Fraser takes the indirect free kick.77:12
Unfair challenge on Chris Clark by Mark Fotheringham results in a free kick. Direct free kick taken by Russell Anderson.76:02
The assist for the goal came from Johnny Hayes.76:02 Goal scored
Goal! - Niall McGinn - Ross Co 2 - 1 Aberdeen Niall McGinn scores a goal from inside the six-yard box to the bottom left corner of the goal. Ross County 2-1 Aberdeen.75:05
Free kick awarded for a foul by Iain Vigurs on Johnny Hayes. Johnny Hayes takes the direct free kick. Johnny Hayes decides to take the corner short.74:45
The referee blows for offside. Free kick taken by Jamie Langfield.73:56
Niall McGinn takes a shot. Save by Michael Fraser.70:30
Inswinging corner taken by Johnny Hayes from the right by-line, save by Michael Fraser.69:40 Substitution
Substitution Scott Vernon goes off and Johnny Hayes comes on.
Isaac Osbourne takes the inswinging corner, Scott Vernon has a headed effort from close in and clears the bar.65:39
Steven Ross is caught offside. Russell Anderson takes the indirect free kick.63:19
Scott Vernon takes a shot. Michael Fraser makes a save.62:51
Grant Munro challenges Ryan Fraser unfairly and gives away a free kick. Free kick taken by Chris Clark.57:34 Substitution
Substitution Andrew Considine leaves the field to be replaced by Cameron Smith.53:40
Mihael Kovacevic challenges Niall McGinn unfairly and gives away a free kick. Ryan Fraser restarts play with the free kick.51:33
Corner taken by Ryan Fraser from the left by-line played to the near post, clearance by Stuart Kettlewell.48:57
Richard Brittain provided the assist for the goal.48:57 Goal scored
Goal! - Steven Ross - Ross Co 2 - 0 Aberdeen Steven Ross finds the net with a goal from the edge of the penalty area to the bottom left corner of the goal. Ross County 2-0 Aberdeen.48:18
Inswinging corner taken right-footed by Ryan Fraser played to the near post, clearance made by Mihael Kovacevic.46:08
Stuart Kettlewell challenges Isaac Osbourne unfairly and gives away a free kick. Free kick taken by Andrew Considine.45:27
Scott Vernon produces a header from just outside the penalty box that goes wide left of the target.45:01
The match restarts for the second half.45:00 +1:07 Half time
Half Time The ref blows to end the first period.44:37
Grant Munro takes the free kick.44:37 Booking
Booking Gavin Rae is booked.44:33
Unfair challenge on Stuart Kettlewell by Gavin Rae results in a free kick.43:26
Shot by Scott Vernon from deep inside the penalty area misses to the left of the target.43:05
Steven Ross is ruled offside. Jamie Langfield restarts play with the free kick.41:25
Scott Vernon challenges Richard Brittain unfairly and gives away a free kick. Scott Boyd restarts play with the free kick.40:40
Grant Munro challenges Russell Anderson unfairly and gives away a free kick. Indirect free kick taken by Jamie Langfield.40:09
Free kick awarded for a foul by Chris Clark on Iain Vigurs. Free kick taken by Iain Vigurs.38:13
Scott Vernon takes a shot.36:04 Goal scored
Goal! - Mark Reynolds - Ross Co 1 - 0 Aberdeen Mark Reynolds heads into his own net. Ross County 1-0 Aberdeen.34:16
Andrew Considine gives away a free kick for an unfair challenge on Steven Ross. Richard Brittain restarts play with the free kick.33:24
Mark Reynolds takes a shot. Save by Michael Fraser.30:33
Stuart Kettlewell gives away a free kick for an unfair challenge on Isaac Osbourne. Free kick taken by Chris Clark.30:01
Richard Brittain has an effort at goal from a long way out that misses to the right of the target.28:30
Richard Brittain fouled by Isaac Osbourne, the ref awards a free kick. Grant Munro takes the direct free kick.27:09
Free kick awarded for an unfair challenge on Stuart Kettlewell by Mark Reynolds. Direct free kick taken by Iain Vigurs.26:13
The assistant referee flags for offside against Rocco Quinn. Free kick taken by Jamie Langfield.24:36
Mark Fotheringham takes a shot. Jamie Langfield makes a save. Iain Vigurs takes a inswinging corner from the right by-line played to the near post, clearance made by Isaac Osbourne.23:13
Mark Fotheringham takes a shot. Jamie Langfield makes a save.21:14
Foul by Isaac Osbourne on Stuart Kettlewell, free kick awarded. Richard Brittain takes the direct free kick.19:36
Unfair challenge on Scott Boyd by Scott Vernon results in a free kick. Indirect free kick taken by Michael Fraser.19:13
Mihael Kovacevic challenges Ryan Fraser unfairly and gives away a free kick. Free kick taken by Jamie Langfield.15:45
Gary Naysmith takes the free kick.15:45 Booking
Booking Booking for Stuart Kettlewell for unsporting behaviour.15:26
Isaac Osbourne fouled by Stuart Kettlewell, the ref awards a free kick.14:40
Foul by Mihael Kovacevic on Ryan Fraser, free kick awarded. Ryan Fraser restarts play with the free kick.14:02
Shot from inside the area by Richard Brittain clears the bar.13:07
Foul by Richard Brittain on Gavin Rae, free kick awarded. Free kick taken by Chris Clark.9:18 Substitution
Substitution Chris Clark replaces Stephen Hughes.8:07
Gary Naysmith restarts play with the free kick.8:07 Booking
Booking The referee shows Rocco Quinn a yellow card for unsporting behaviour.7:56
Rocco Quinn challenges Niall McGinn unfairly and gives away a free kick.2:05
Free kick awarded for a foul by Isaac Osbourne on Mark Fotheringham. Free kick taken by Richard Brittain.1:04
Unfair challenge on Mark Reynolds by Steven Ross results in a free kick. Jamie Langfield takes the direct free kick.0:00
The referee gets the match started.
Live data and text provided by our data suppliers