Inverness kept up their European hopes with a dramatic defeat of Motherwell.
Billy McKay completed a hat-trick for the hosts to finally close out a victory after 'Well had cancelled out a three-goal Inverness lead.
Andrew Shinnie had scored in between two McKay efforts but James McFadden stemmed the tide for 'Well.
Michael Higdon's penalty and McFadden's second brought the visitors level but the Steelmen had Henrik Ojamaa dismissed before McKay's winner.
Terry Butcher's side stay one point clear of St Johnstone in the race for the third place that will guarantee a Europa League qualifying berth. Motherwell still need one more point to confirm second in the Scottish Premier League.
If there was an award for game of the season along with those for manager and players, this seven-goal crowd-pleaser in Inverness would be a prime candidate.
Josh Meekings, playing down the right in Inverness's rearranged defence, set up McKay to slot home the opener from close range.
Caley Thistle captain Richie Foran hit the post in advance of McKay setting up Shinnie for a left-footed 12-yard shot into the net.
Within two minutes, the compliment was repaid as Shinnie supplied McKay for the striker's second of the game.
However, Ojamaa found McFadden just outside the Inverness box and the forward struck to start a comeback.
And after the interval Ojamaa was tripped by Chris Hogg, who was back in the Inverness line-up for the first time in 18 months following cruciate ligament surgery. Higdon further narrowed the gap with the resulting penalty.
Inverness shunned a chance to restore a two-goal advantage when McKay's spot-kick was saved by Darren Randolph after Nick Ross had been upended.
And it looked like a costly mistake as McFadden soon levelled the score off the left post.
Nicky Law then had a good chance to give 'Well the lead but the midfielder put his effort over the bar.
Ojamaa's foul on Shinnie attracted a second yellow card, the Estonian having earlier been booked for diving.
Motherwell, down to 10 men, then felt the full weight of the Inverness attack.
And with seven minutes left McKay grabbed the winner and his hat-trick when he stabbed a rebound from a Randolph save beyond the Motherwell keeper.
Inverness Caledonian Thistle
- 12 Reguero
- 03 Shinnie
- 06 Hogg
- 14 Meekings
- 27 Devine
- 08 Draper Booked
- 10 Shinnie (Tudur-Jones - 89' )
- 11 Ross
- 07 McKay
- 09 Foran Booked
- 17 Doran
- 31 Mathieson
- 28 Taylor
- 04 Tudur-Jones
- 21 Polworth
- 22 Pepper
- 18 Sutherland
- 01 Randolph
- 03 Hammell Booked
- 05 Hutchinson
- 15 Ramsden (McHugh - 86' )
- 04 Law Booked
- 06 Hateley
- 07 Humphrey (Kerr - 82' )
- 14 Lasley
- 08 Ojamaa Dismissed after an earlier booking
- 09 Higdon
- 20 McFadden
- 12 Hollis
- 19 Kerr
- 26 Francis-Angol
- 30 Cummins
- 18 Carswell
- 11 Higginbotham
- 16 McHugh
Live Text Commentary
Full Time The referee blows for the end of the match.90:00 +2:19
Unfair challenge on Tom Hateley by Nick Ross results in a free kick. Tom Hateley restarts play with the free kick.90:00 +1:32
Effort on goal by Shaun Hutchinson from outside the area goes harmlessly over the bar.90:00 +0:37
James McFadden takes the outswinging corner, clearance made by Josh Meekings.88:33 Substitution
Substitution Owain Tudur Jones is brought on as a substitute for Andrew Shinnie.88:33
Effort from just outside the box by Robert McHugh goes over the bar.85:47
Graeme Shinnie takes a shot.83:10 Substitution
Substitution Robert McHugh on for Simon Ramsden.83:10
The assist for the goal came from Josh Meekings. Inswinging corner taken right-footed by Tom Hateley from the left by-line, clearance made by Antonio Reguero.83:10 Goal scored
Goal! - Billy McKay - Inverness 4 - 3 Motherwell Billy McKay grabs a goal from inside the six-yard box high into the middle of the goal. Inverness CT 4-3 Motherwell.79:52 Substitution
Substitution Chris Humphrey goes off and Fraser Kerr comes on.79:52
The referee blows for offside against Nick Ross. Indirect free kick taken by Tom Hateley.76:07
Daniel Devine challenges Michael Higdon unfairly and gives away a free kick. Free kick taken by Simon Ramsden.72:30
Graeme Shinnie restarts play with the free kick.72:30 Dismissal
Dismissal Henrik Ojamaa shown a red card.72:24
Foul by Henrik Ojamaa on Andrew Shinnie, free kick awarded.71:21
Andrew Shinnie fouled by Keith Lasley, the ref awards a free kick. Chris Hogg restarts play with the free kick.70:51
Effort on goal by Nicky Law from inside the area goes harmlessly over the bar.69:56
Henrik Ojamaa challenges Richie Foran unfairly and gives away a free kick. Richie Foran restarts play with the free kick.68:23
Andrew Shinnie takes a shot. Save made by Darren Randolph.
Corner taken by Tom Hateley from the right by-line to the near post, Graeme Shinnie makes a clearance.64:08
Effort on goal by Aaron Doran from just outside the penalty area goes harmlessly over the target.63:06
Assist on the goal came from Keith Lasley.63:06 Goal scored
Goal! - James McFadden - Inverness 3 - 3 Motherwell A goal is scored by James McFadden from the edge of the penalty box to the bottom right corner of the goal. Inverness CT 3-3 Motherwell.62:10
Corner taken right-footed by Aaron Doran from the left by-line, Stevie Hammell manages to make a clearance.62:10 Penalty
Penalty taken by Billy McKay is saved by Darren Randolph. Inverness CT 3-2 Motherwell.61:13
Shaun Hutchinson concedes a Penalty for a foul on Nick Ross.59:42
Keith Lasley concedes a free kick for a foul on Andrew Shinnie. Direct free kick taken by Antonio Reguero.59:23
Aaron Doran gives away a free kick for an unfair challenge on Stevie Hammell. Stevie Hammell takes the free kick.58:30
Free kick awarded for an unfair challenge on Keith Lasley by Ross Draper. Stevie Hammell restarts play with the free kick.57:56
Richie Foran takes a shot.57:09
Chris Humphrey concedes a free kick for a foul on Chris Hogg.56:37
Chris Hogg takes the direct free kick.56:37 Booking
Booking Nicky Law is shown a yellow card for unsporting behaviour.56:36 Booking
Booking Booking for Ross Draper for unsporting behaviour.54:44
Tom Hateley takes a inswinging corner.54:21
Henrik Ojamaa takes a shot. Save made by Antonio Reguero.51:22
Tom Hateley takes a outswinging corner from the right by-line to the near post, clearance by Graeme Shinnie.50:52
Tom Hateley takes the outswinging corner, clearance by Josh Meekings.49:26 Booking
Booking Henrik Ojamaa is shown a yellow card for unsporting behaviour.48:27 Goal scored
Goal! - Michael Higdon - Inverness 3 - 2 Motherwell Penalty taken right-footed by Michael Higdon and scored. Inverness CT 3-2 Motherwell.47:32
Penalty awarded for an unfair challenge on Henrik Ojamaa by Chris Hogg.45:53
Michael Higdon gives away a free kick for an unfair challenge on Daniel Devine. Antonio Reguero restarts play with the free kick.45:01
The match restarts for the second half.45:00 +0:15 Half time
Half Time The whistle is blown to end the first half.43:56
Inswinging corner taken left-footed by Graeme Shinnie from the right by-line to the near post, clearance made by James McFadden.41:27
The referee blows for offside. Darren Randolph restarts play with the free kick.40:42
Free kick crossed by Graeme Shinnie, James McFadden manages to make a clearance.40:42 Booking
Booking Stevie Hammell booked.40:38
Stevie Hammell challenges Aaron Doran unfairly and gives away a free kick.35:08
Michael Higdon provided the assist for the goal.35:08 Goal scored
Goal! - James McFadden - Inverness 3 - 1 Motherwell James McFadden fires in a goal from outside the penalty area to the bottom right corner of the goal. Inverness CT 3-1 Motherwell.34:20
Free kick awarded for an unfair challenge on Stevie Hammell by Josh Meekings. Stevie Hammell takes the free kick.33:10
James McFadden fouled by Andrew Shinnie, the ref awards a free kick. Direct free kick taken by Stevie Hammell.31:07
Chris Humphrey takes a shot. Save made by Antonio Reguero.26:31
The assist for the goal came from Andrew Shinnie.26:31 Goal scored
Goal! - Billy McKay - Inverness 3 - 0 Motherwell Billy McKay fires in a goal from inside the six-yard box low into the middle of the goal. Inverness CT 3-0 Motherwell.25:53
Unfair challenge on Keith Lasley by Daniel Devine results in a free kick. Free kick taken by Stevie Hammell.24:21
Assist on the goal came from Billy McKay.24:21 Goal scored
Goal! - Andrew Shinnie - Inverness 2 - 0 Motherwell Andrew Shinnie gets on the score sheet with a goal from deep inside the penalty box to the bottom right corner of the goal. Inverness CT 2-0 Motherwell.23:44
Free kick awarded for an unfair challenge on Richie Foran by James McFadden. Josh Meekings takes the direct free kick.16:44
Inswinging corner taken right-footed by Aaron Doran.16:25
Graeme Shinnie takes a shot. Blocked by Shaun Hutchinson.15:47
Daniel Devine gives away a free kick for an unfair challenge on James McFadden. Shaun Hutchinson restarts play with the free kick.15:11
Corner taken by Aaron Doran from the left by-line played to the near post, clearance made by James McFadden.13:57
Keith Lasley challenges Josh Meekings unfairly and gives away a free kick. Josh Meekings takes the free kick.12:44
The assistant referee signals for offside against Andrew Shinnie. Darren Randolph takes the free kick.11:56
Nicky Law challenges Graeme Shinnie unfairly and gives away a free kick. Free kick crossed left-footed by Graeme Shinnie.8:37
Shot by Richie Foran from deep inside the penalty area hits the post.7:22
Shaun Hutchinson gives away a free kick for an unfair challenge on Billy McKay. Shot on goal comes in from Aaron Doran from the free kick, blocked by Simon Ramsden.4:48
Direct free kick taken by Darren Randolph.4:48 Booking
Booking Richie Foran is shown a yellow card for unsporting behaviour.4:40
Richie Foran gives away a free kick for an unfair challenge on Keith Lasley.2:55
Daniel Devine provided the assist for the goal.2:55 Goal scored
Goal! - Billy McKay - Inverness 1 - 0 Motherwell Billy McKay scores a goal from inside the six-yard box to the bottom right corner of the goal. Inverness CT 1-0 Motherwell.1:53
Simon Ramsden gives away a free kick for an unfair challenge on Andrew Shinnie. Graeme Shinnie has an effort direct from the free kick, Chris Humphrey gets a block in.0:22
Shot by Keith Lasley from outside the box goes over the net.0:00
The referee gets the game underway.
Live data and text provided by our data suppliers