East Fife 2 - 1 Dunfermline
A stunning strike from East Fife's Scott Dalziel dumped top-flight Dunfermline out of the League Cup.
The Second Division side were rewarded for an impressive opening when Bobby Linn fired in a fourth-minute strike.
Dunfermline levelled 10 minutes later as Liam Buchanan slid in to prod home from close range.
But East Fife took a deserved lead again 10 minutes into the second half, with Dalziel crashing in a super effort from the edge of the penalty box.
The Premier League visitors almost took the tie to extra-time with the last action of the game, but Steven Hislop made a fine goal-line clearance.
Prior to Linn's early breakthrough, Ryan Wallace had missed a gilt-edged chance - shooting high over the crossbar after a lofted Craig Johnstone through-ball had sent him clear.
And John Robertson's side continued to create the best chances, with Gallacher saving from Linn's curling free kick after the break and Robert Sloan shooting over the top from a set-piece.
Linn and Wallace squandered further opportunities late in the game as the SPL side struggled to match the energy of their part-time opponents.
And East Fife's John Robertson, who also managed Inverness Caledonian to a famous Scottish Cup win over Celtic in 2003, described it as one of the best of his management career.
East Fife manager John Robertson: "For me, it's up there with the Celtic result.
"It's just unbelievable. I thought we dominated the game.
"We were sharp, inventive and if it wasn't for Paul Gallacher keeping the score down then we could have won by more."
Dunfermline manager Jim McIntyre: "The best team won and there's no getting away from that.
"We weren't at the races; didn't start well and continued like that through the night.
"It's a bad day at the office and we're gutted we're out the cup, but we got exactly what we deserved.
"It's a horrible night. We've taken some great praise in recent weeks, so let's take this one on the chin."
Live Text Commentary
Full Time The referee blows his whistle to end the game.89:22
Andrew Barrowman gives away a free kick for an unfair challenge on Steven Hislop. Michael Brown takes the direct free kick.86:57
The offside flag is raised against Craig Johnstone. Paul Gallacher takes the free kick.86:27
Short corner worked by Robert Linn.82:00
Strike comes in from Robert Sloan from the free kick.82:00 Booking
Booking Paul Burns booked for dissent.81:56
Paul Burns is adjudged to have handled the ball.77:53
Ryan Wallace produces a right-footed shot from just outside the penalty box that misses to the left of the goal.77:29
Robert Sloan challenges Ryan Thomson unfairly and gives away a free kick. The free kick is delivered right-footed by Paul Willis from left channel, John Ovenstone manages to make a clearance.72:55
Robert Linn has an effort at goal from deep inside the area missing to the left of the goal.72:02
Matthew Park concedes a free kick for a foul on Jason Thomson. Jason Thomson restarts play with the free kick.71:40
Scott Durie gives away a free kick for an unfair challenge on Andrew Barrowman. Direct free kick taken by Jason Thomson.70:21
Paul Willis produces a right-footed shot from inside the area that goes over the bar.69:01 Substitution
Substitution (Dunfermline) makes a substitution, with Andy Kirk coming on for Liam Buchanan.65:49
Foul by Andrew Barrowman on Steven Hislop, free kick awarded. Michael Brown takes the direct free kick.64:41
Foul by Kevin Rutkiewicz on Robert Linn, free kick awarded. Free kick taken by Ryan Wallace.61:19
Free kick taken by Jason Thomson.61:19 Substitution
Substitution Ryan Thomson replaces Andy Dowie.61:19
Andrew Barrowman fouled by Craig Johnstone, the ref awards a free kick.60:23
Direct effort from the free kick comes in from Robert Sloan.
Booking Booking for Alex Keddie for unsporting behaviour.59:59
Unfair challenge on Ryan Wallace by Alex Keddie results in a free kick.58:24
Direct effort from the free kick comes in from Robert Linn, Paul Gallacher makes a fantastic save.58:24 Substitution
Substitution Scott Dalziel goes off and Robert Sloan comes on.58:24
Free kick awarded for an unfair challenge on Ryan Wallace by Andy Dowie.57:52
Free kick awarded for a foul by Liam Buchanan on Steven Hislop. Steven Hislop takes the direct free kick.56:38
Austin McCann takes the direct free kick.56:38 Booking
Booking Ryan Wallace goes into the referee's book for unsporting behaviour.56:17
Ryan Wallace concedes a free kick for a foul on Kevin Rutkiewicz.55:44
Andrew Barrowman gives away a free kick for an unfair challenge on Matthew Park. Matthew Park restarts play with the free kick.54:44 Substitution
Substitution Steven McDougall leaves the field to be replaced by Paul Willis.53:35
Assist on the goal came from Robert Linn.53:35 Goal scored
Goal! - Scott Dalziel - East Fife 2 - 1 Dunf'mline Scott Dalziel scores a goal from deep inside the penalty area to the top left corner of the goal. East Fife 2-1 Dunfermline.46:55
Inswinging corner taken right-footed by Steven McDougall from the right by-line, clearance by John Ovenstone.45:28
Corner from left by-line taken by Steven McDougall.45:01
The referee blows his whistle to start the second half.45:00 +0:40 Half time
Half Time The ref blows to end the first period.45:00 +0:16
The referee blows for offside. Free kick taken by Michael Brown.40:18
Andrew Barrowman challenges Darren Smith unfairly and gives away a free kick. Direct free kick taken by Michael Brown.38:56
Corner taken right-footed by Steven McDougall, Darren Smith manages to make a clearance.38:00
Effort on goal by Matthew Park from inside the penalty box misses to the right of the target.36:03
Corner taken by Steven McDougall, Matthew Park makes a clearance.35:26
Corner taken by Steven McDougall, Steven Hislop manages to make a clearance.34:53
Inswinging corner taken by Kevin Rutkiewicz, Scott Dalziel makes a clearance.34:04
Outswinging corner taken by Steven McDougall, Scott Durie manages to make a clearance.33:41
Inswinging corner taken from the left by-line by Steven McDougall, clearance by Matthew Park.33:03
Corner from the right by-line taken by Steven McDougall, clearance made by Scott Dalziel.31:31
Unfair challenge on Robert Linn by Austin McCann results in a free kick. Direct free kick taken by Steven Hislop.30:45
Effort on goal by Liam Buchanan from deep inside the penalty area misses to the right of the goal.28:45
Unfair challenge on Jason Thomson by Scott Dalziel results in a free kick. Direct free kick taken by Paul Gallacher.26:45
Corner taken by Robert Linn from the left by-line, save by Paul Gallacher.25:21
Andrew Barrowman concedes a free kick for a foul on John Ovenstone. Michael Brown restarts play with the free kick.21:13
Corner taken by Steven McDougall from the right by-line, free kick awarded for an unfair challenge on David Graham by Scott Durie. The ball is sent over by Steven McDougall, Liam Buchanan takes a shot. Save made by Michael Brown.20:36
Unfair challenge on David Graham by Scott Durie results in a free kick. Paul Gallacher restarts play with the free kick.19:35
Corner taken by Craig Johnstone from the right by-line, Jason Thomson makes a clearance.14:28
The ball is swung over by Steven McDougall, Header by Liam Buchanan from deep inside the penalty area misses to the left of the goal.11:51
Andrew Barrowman provided the assist for the goal.11:51 Goal scored
Goal! - Liam Buchanan - East Fife 1 - 1 Dunf'mline Liam Buchanan finds the back of the net with a goal from inside the six-yard box to the bottom left corner of the goal. East Fife 1-1 Dunfermline.10:15
Effort from the edge of the area by David Graham goes wide of the left-hand post.6:56
Robert Linn decides to take the corner short.3:59
Scott Dalziel provided the assist for the goal.3:59 Goal scored
Goal! - Robert Linn - East Fife 1 - 0 Dunf'mline Robert Linn grabs a goal from inside the penalty box to the top right corner of the goal. East Fife 1-0 Dunfermline.1:20
Effort on goal by Ryan Wallace from deep inside the area goes harmlessly over the bar.0:00
The referee gets the match started.
Live data and text provided by our data suppliers