Andy Kirk glanced in a late header as Dunfermline staged a thrilling comeback to earn a point at St Mirren.
Nigel Hasselbaink shot the Buddies into an early lead, only for Jordan McMillan to curl in a lovely equaliser.
Steven Thompson crashed in two powerful headers either side of half time before David Graham pulled one back.
Thompson found the top corner with a strike for his hat-trick before Liam Buchanan did the same from long range and Kirk nodded in the leveller.
A quite incredible game leaves Dunfermline six points behind second bottom Hibernian, who play on Sunday, as they battle to avoid relegation from the Scottish Premier League.
And, despite their striker bagging an impressive hat-trick and twice leading by two goals, St Mirren were unable to improve their record of just one win in 2012.
Pars manager Jim Jefferies had declared victory a must and both sides were commited to attack right from the off, although some sloppy defending contributed to the high goals-tally.
Hasselbaink was left all alone as Paul McGowan picked him out with a pass for the opening goal on four minutes. The Dutchman was then able to turn inside Alex Keddie and slotted the ball past Chris Smith.
Steven Thompson netted a hat-trick for St Mirren
Kyle Hutton twice threatened for the visitors but Lee Mair's sliding block stopped the first effort and the on-loan Rangers midfielder then shot wide from 15 yards.
Dunfermline kept pressing and Graham hit the inside of the post with a powerful drive from 20 yards before Keddie headed wide.
The deserved equaliser came in the 24th minute when right-back McMillan cut inside and fired an excellent left-footed effort into the far corner of the net from 25 yards.
McGowan met Graham Carey's cross inside the six-yard box and his header bounced down off the turf and against the crossbar, while Thompson could not net the rebound.
Kenny McLean, Carey and McGowan threatened from long range as Saints regained the upper hand and Thompson headed home from six yards after a wonderful cross from Carey.
Early in the second half, Thompson delivered another blow when he beat Andy Dowie to Dougie Imrie's right-wing cross and headed into the roof of the net.
But Graham pulled one back with 56 minutes gone with a cool finish following a smart one-two with Hardie.
Dunfermline pushed on again but Thompson completed his treble when David van Zanten dispossessed Joe Cardle deep inside the Pars half before laying the ball off to the striker to fire into the top corner from 15 yards.
The visitors refused to let their heads go down and the impressive Hutton won the ball in the centre circle to allow Graham the chance to send Buchanan free.
The pass and touch appeared to take the forward too wide but he unleashed a powerful strike that swerved out of Craig Samson's reach and into the near top corner.
The small band of travelling fans went wild when Andy Kirk managed to glance in a header from close range and the substitute fashioned two more late chances without hitting the target.
St Mirren manager Danny Lennon:
"As a neutral watching that would have been absolutely fantastic.
"It was a thoroughly entertaining game with good goals and end-to-end action.
"But as St Mirren manager I'm absolutely livid not to take maximum points after having the game sewn up on a number of occasions.
"We didn't keep possession and do the right things. I'm very, very angry because it was a wonderful opportunity missed."
Dunfermline manager Jim Jefferies:
"You could see the way the team was set up, we played virtually four attackers because it was a game we were desperate to win.
"For the last 10 minutes I have gone 3-4-3. We have thrown Kirk on and just went for it.
"After the goal he has a chance and if he hits the target we are winning the game.
"At 3-1 down and 4-2 down in the position we are in you would be delighted with the response of the players. I am over the moon with their response to get something.
"It was a win we were wanting but if Hibs lose tomorrow that's a point closer.
"It's another game away and it makes it a wee bit tougher, but it doesn't mean it's impossible."
Full Time The final whistle is blown by the referee.
Steven Thompson is flagged offside by the assistant referee. Chris Smith restarts play with the free kick.
Foul by Austin McCann on Thomas Reilly, free kick awarded. Jim Goodwin takes the direct free kick.
David Graham crosses the ball, clearance made by Marc McAusland.
Andy Kirk produces a right-footed shot from inside the area that goes over the bar.
The ball is delivered by Joe Cardle, Marc McAusland makes a clearance.
Inswinging corner taken right-footed by Joe Cardle, clearance by Jim Goodwin.
Andy Kirk takes a shot. Blocked by Marc McAusland.
Paul McGowan takes a shot. Save by Chris Smith.
Assist on the goal came from Joe Cardle.
87:39 Goal scored
Goal - Andy Kirk - St Mirren 4 - 4 Dunf'mline Andy Kirk scores a headed goal from inside the penalty area. St Mirren 4-4 Dunfermline.
The ball is crossed by Joe Cardle,
Gary Teale sends in a cross, save by Chris Smith.
Corner taken short by Gary Teale.
The ball is swung over by Gary Teale, Austin McCann manages to make a clearance.
The ball is delivered by Joe Cardle, Craig Samson makes a save.
Substitution Gary Mason leaves the field to be replaced by Andy Kirk.
Gary Mason produces a cross.
David van Zanten concedes a free kick for a foul on Mark Kerr. Austin McCann restarts play with the free kick.
Unfair challenge on Gary Teale by Austin McCann results in a free kick. Marc McAusland takes the direct free kick.
Free kick awarded for a foul by Gary Teale on Joe Cardle. Free kick crossed left-footed by Austin McCann.
Long range effort by Graham Carey goes harmlessly over the bar.
Substitution Andrew Barrowman comes on in place of Liam Buchanan.
Booking Alex Keddie is cautioned by the ref for dissent.
Unfair challenge on Marc McAusland by Andy Dowie results in a free kick.
Joe Cardle delivers the ball, Marc McAusland manages to make a clearance.
Jim Goodwin takes the free kick.
Substitution Nigel Hasselbaink goes off and Thomas Reilly comes on.
Substitution Gary Teale comes on in place of Douglas Imrie.
Alex Keddie challenges Steven Thompson unfairly and gives away a free kick.
The ball is swung over by Austin McCann, Lee Mair makes a clearance.
Assist on the goal came from David Graham.
70:06 Goal scored
Goal - Liam Buchanan - St Mirren 4 - 3 Dunf'mline Liam Buchanan grabs a goal from the edge of the penalty box to the top right corner of the goal. St Mirren 4-3 Dunfermline.
Corner taken left-footed by Graham Carey, Headed effort from close range by Steven Thompson goes wide left of the goal.
Kenny McLean produces a cross, Andy Dowie manages to make a clearance.
The assist for the goal came from David van Zanten.
66:55 Goal scored
Goal - Steven Thompson - St Mirren 4 - 2 Dunf'mline Steven Thompson finds the net with a goal from deep inside the penalty box to the top left corner of the goal. St Mirren 4-2 Dunfermline.
The ball is swung over by Graham Carey.
Martin Hardie is caught offside. Indirect free kick taken by Craig Samson.
A cross is delivered by Austin McCann.
The ball is sent over by Graham Carey.
The referee blows for offside. Craig Samson restarts play with the free kick.
Corner taken right-footed by Joe Cardle from the left by-line, Martin Hardie has a headed effort at goal from close in which goes wide right of the target.
David Graham delivers the ball, clearance by Marc McAusland.
Free kick awarded for an unfair challenge on Jim Goodwin by Mark Kerr. Free kick taken by Craig Samson.
Chris Smith restarts play with the free kick.
Booking Douglas Imrie receives a caution for unsporting behaviour.
Foul by Douglas Imrie on Mark Kerr, free kick awarded.
Free kick awarded for a foul by Kyle Hutton on Paul McGowan. Jim Goodwin takes the direct free kick.
Martin Hardie provided the assist for the goal.
55:56 Goal scored
Goal - David Graham - St Mirren 3 - 2 Dunf'mline Goal scored by David Graham from inside the six-yard box to the bottom left corner of the goal. St Mirren 3-2 Dunfermline.
Outswinging corner taken left-footed by Graham Carey from the left by-line, Austin McCann manages to make a clearance.
Joe Cardle sends in a cross.
Martin Hardie is caught offside. Craig Samson restarts play with the free kick.
Paul McGowan concedes a free kick for a foul on David Graham. Direct free kick taken by Andy Dowie.
The ball is delivered by Graham Carey, Alex Keddie manages to make a clearance.
A cross is delivered by Graham Carey, Gary Mason gets a block in.
Nigel Hasselbaink sends in a cross.
Paul McGowan concedes a free kick for a foul on Kyle Hutton. Kyle Hutton restarts play with the free kick.
Douglas Imrie provided the assist for the goal.
47:06 Goal scored
Goal - Steven Thompson - St Mirren 3 - 1 Dunf'mline Steven Thompson finds the net with a headed goal from close range. St Mirren 3-1 Dunfermline.
The ball is delivered by Douglas Imrie,
Kenny McLean delivers the ball, Austin McCann makes a clearance.
The match restarts for the second half.
Substitution Joe Cardle comes on in place of Jordan McMillan.
45:00 +2:10 Half time
Half Time The half-time whistle blows.
Foul by Martin Hardie on Marc McAusland, free kick awarded. Direct free kick taken by Craig Samson.
Paul McGowan takes a shot and went wide left of the net.
Foul by Nigel Hasselbaink on Gary Mason, free kick awarded. Chris Smith takes the direct free kick.
A cross is delivered by Nigel Hasselbaink, Alex Keddie makes a clearance.
Gary Mason takes a shot. Save by Craig Samson.
Austin McCann crosses the ball.
Austin McCann produces a cross, Marc McAusland gets a block in.
Assist on the goal came from Graham Carey.
42:30 Goal scored
Goal - Steven Thompson - St Mirren 2 - 1 Dunf'mline Steven Thompson grabs a headed goal from close in. St Mirren 2-1 Dunfermline.
Graham Carey delivers the ball,
Centre by Gary Mason, save by Craig Samson.
Jim Goodwin concedes a free kick for a foul on Kyle Hutton. Andy Dowie takes the direct free kick.
The ball is crossed by Steven Thompson.
Paul McGowan has an effort at goal from long range that misses to the right of the target.
Long range shot by Douglas Imrie goes wide right of the goal.
David Graham gives away a free kick for an unfair challenge on Kenny McLean. Direct effort from the free kick comes in from Graham Carey.
Kenny McLean takes a shot. Chris Smith makes a save.
The free kick is swung in left-footed by Graham Carey, Alex Keddie makes a clearance.
Booking Jordan McMillan goes into the referee's book for unsporting behaviour.
Foul by Jordan McMillan on Douglas Imrie, free kick awarded.
Marc McAusland gives away a free kick for an unfair challenge on Martin Hardie. Mark Kerr takes the free kick.
Close range shot by Steven Thompson misses to the left of the target.
The ball is sent over by Graham Carey, Header from close in by Paul McGowan hits the post.
Mark Kerr takes a shot. Craig Samson makes a save.
Inswinging corner taken right-footed by Mark Kerr, clearance made by Steven Thompson.
The ball is swung over by Austin McCann, blocked by Douglas Imrie.
Liam Buchanan is caught offside. Free kick taken by Craig Samson.
David Graham crosses the ball.
Foul by Douglas Imrie on Mark Kerr, free kick awarded. Direct free kick taken by Mark Kerr.
Assist on the goal came from Mark Kerr.
23:13 Goal scored
Goal - Jordan McMillan - St Mirren 1 - 1 Dunf'mline Jordan McMillan scores a goal from outside the penalty area to the bottom left corner of the goal. St Mirren 1-1 Dunfermline.
Martin Hardie delivers the ball, Headed effort from deep inside the area by Alex Keddie misses to the right of the target.
Marc McAusland concedes a free kick for a foul on Martin Hardie. Free kick crossed by Austin McCann, clearance made by Jim Goodwin.
David Graham has an effort at goal from a long way out hitting the post.
Martin Hardie is caught offside. Lee Mair takes the indirect free kick.
Nigel Hasselbaink sends in a cross, save by Chris Smith.
Free kick awarded for an unfair challenge on David van Zanten by Austin McCann. Graham Carey produces a cross, Steven Thompson produces a header from inside the area that goes over the crossbar.
Liam Buchanan sends in a cross, Jim Goodwin makes a clearance.
Centre by Austin McCann, save made by Craig Samson.
Unfair challenge on Alex Keddie by Steven Thompson results in a free kick. Free kick taken by Andy Dowie.
Kyle Hutton has an effort at goal from deep inside the area missing to the left of the target.
Corner taken by Mark Kerr from the right by-line, Headed effort from inside the area by Alex Keddie misses to the left of the target.
Kyle Hutton takes a shot. Lee Mair gets a block in.
Centre by Graham Carey.
Jim Goodwin fouled by Martin Hardie, the ref awards a free kick. David van Zanten takes the free kick.
Paul McGowan provided the assist for the goal.
3:48 Goal scored
Goal - Nigel Hasselbaink - St Mirren 1 - 0 Dunf'mline Nigel Hasselbaink finds the back of the net with a goal from inside the penalty area to the bottom left corner of the goal. St Mirren 1-0 Dunfermline.
Unfair challenge on Kyle Hutton by Kenny McLean results in a free kick. Andy Dowie restarts play with the free kick.
Martin Hardie takes a shot. Blocked by Jim Goodwin.
The match has kicked off.
Live text and data provided by The Press Association
This page is best viewed in an up-to-date web browser with style sheets (CSS) enabled. While you will be able to view the content of this page in your current browser, you will not be able to get the full visual experience. Please consider upgrading your browser software or enabling style sheets (CSS) if you are able to do so.