Dunfermline knocked Scottish First Division table-toppers Partick Thistle out of the Scottish Cup in a dramatic tie at Firhill.
The 1-0 win came via a ninth goal of the season for Andy Barrowman.
His first-half header came after Thistle defender Aaron Muirhead was given a red card for a last-man foul on Craig Dargo.
In a game where both keepers shone, Partick's Ross Forbes saw his second-half penalty saved by Paul Gallacher.
Partick Thistle came out on top in the previous two meetings of the sides, both in the league, winning 1-0 at East End Park in August then 5-1 at Firhill in November.
Despite that familiarity, the two teams spent the first 10 minutes of this match sizing each other up cautiously.
Craig Dargo had a lively first half for the visitors, and it was him who brought out a 12th-minute near-post save from Thistle's Graeme Smith after Pars midfielder Ryan Thomson had put the little striker through on the right-hand side.
However, the game changed completely when Partick's Aaron Muirhead was shown a straight red card.
The busy Dargo looked to be in the clear chasing down a long ball, but Muirhead pushed the former Thistle forward who used all his experience to go down and force referee Steven McLean into a decision.
Although the push looked minimal, referee McLean knew Muirhead was last man and out came the red.
Stephen Jordan blasted the resultant free-kick over from the edge of the box, giving Thistle boss Jackie McNamara the chance to get Alan Archibald on in defence, sacrificing Steven Lawless in the process.
Dargo was then in the right place at the right time on 34 minutes, but flashed his left-footed effort over Smith's bar.
However, Dunfermline's goal was just 60 seconds away.
Josh Falkingham caused Thistle problems on the right, jinking and twisting before laying it back to Stephen Husband. His deep cross was headed into the far corner of the net by Andy Barrowman.
On the hour mark, a fantastic double save from Graeme Smith kept the home side in the game.
Again it was Dargo scurrying through the middle, releasing Husband who turned inside and got his shot away from eight yards. Smith was equal to it though, and also the follow up from substitute Joe Cardle.
Thistle then had a brilliant opportunity to restore parity on 72 minutes.
Chris Erskine was clearly felled inside the corner of the box by Dunfermline's Andy Geggan and referee McLean pointed to the spot.
Ross Forbes stepped up, but Gallacher tipped his effort onto the post before the ball painstakingly rolled along the line prior to it being cleared by the Pars defence.
Five minutes later it was Smith's turn to be hero again in Thistle's goal.
First, he punched bravely under pressure from Dunfermline's subsitute Ryan Wallace, then he used his feet to deny a firm Cardle effort.
With Dunfermline pressing for the second and Thistle doing likewise for the equaliser, there was time for one more twist before the full-time whistle.
And that involved goalscorer Barrowman, who received a second yellow card on 90 minutes for a hefty challenge on Sinclair.
- 01 Smith
- 02 O'Donnell
- 03 Sinclair
- 05 Muirhead Dismissed
- 04 Murray (Craig - 70' )
- 06 Balatoni
- 08 Bannigan
- 11 Erskene
- 07 Lawleff (Archibald - 30' )
- 09 Doohlan (McGuigan - 56' )
- 10 Forbes
- 12 Roy
- 14 Archibald
- 15 Rowson
- 16 McGuigan
- 17 Craig
- 01 Gallacher
- 02 McMillan Booked
- 03 Jordan
- 04 Dowie
- 05 Morris Booked
- 06 Geggan Booked
- 07 Thomson
- 08 Husband (Byrne - 82' )
- 11 Falkingham (Cardle - 42' )
- 09 Barrowman Dismissed after an earlier booking
- 10 Dargo (Wallace - 70' )
- 20 Hrivnak
- 14 Cardle
- 15 Wallace
- 16 Byrne
- 12 Kirk
Live Text Commentary
Full Time The referee blows his whistle to end the game.90:00 +0:57 Dismissal
Dismissal Andrew Barrowman is shown a red card for second bookable offence.89:20
Ross Forbes restarts play with the free kick.89:20 Booking
Booking Andrew Barrowman goes into the referee's book.88:20
Inswinging corner taken by Ross Forbes, clearance made by Andrew Barrowman. Unfair challenge on Ross Forbes by Andrew Barrowman results in a free kick.88:20 Booking
Booking Jordan McMillan shown a yellow card.88:12
Free kick awarded for a foul by Jordan McMillan on Aaron Sinclair.83:44
Ross Forbes takes a shot. Outswinging corner taken by Ross Forbes, clearance by Callum Morris.81:20 Substitution
Substitution Shaun Byrne is brought on as a substitute for Stephen Husband.80:18
Joseph Cardle takes a shot. Graeme Smith makes a save.76:38
Christopher Erskine takes a shot. Save by Paul Gallacher.73:33
Corner taken right-footed by Joseph Cardle from the right by-line, clearance by Conrad Balatoni.70:58
Inswinging corner taken by Ross Forbes.70:58 Penalty
Placed penalty missed by Ross Forbes.70:58
Andrew Geggan challenges Christopher Erskine unfairly and gives away a Penalty.69:00 Substitution
Substitution Hugh Murray leaves the field to be replaced by Steven Craig.69:00 Substitution
Substitution Ryan Wallace comes on in place of Craig Dargo.66:40
Free kick awarded for a foul by Joseph Cardle on Ross Forbes. Ross Forbes restarts play with the free kick.62:00
Joseph Cardle takes a shot. Save made by Graeme Smith.60:41
Shot from outside the box by Jordan McMillan goes wide right of the target.
Callum Morris fouled by Ross Forbes, the ref awards a free kick. Stephen Jordan takes the free kick.55:57 Substitution
Substitution Mark McGuigan on for Kris Doolan.52:48
Outswinging corner taken left-footed by Ross Forbes from the left by-line, Craig Dargo makes a clearance.49:28
Hugh Murray has an effort at goal from outside the box missing to the wide left of the goal.48:51
Unfair challenge on Aaron Sinclair by Ryan Thomson results in a free kick. Direct free kick taken by Hugh Murray.45:37
Callum Morris challenges Kris Doolan unfairly and gives away a free kick. Direct free kick taken by Conrad Balatoni.45:24 Booking
Booking Callum Morris is booked.45:01
The game restarts for the second half.45:00 +3:28 Half time
Half Time The first half comes to an end.45:00 +3:04
Corner taken left-footed by Ross Forbes.41:29 Substitution
Substitution Joshua Falkingham leaves the field to be replaced by Joseph Cardle.41:29
Alan Archibald is flagged offside by the assistant referee. Paul Gallacher restarts play with the free kick.40:51
Inswinging corner taken left-footed by Ross Forbes from the right by-line, clearance by Andrew Geggan.36:50
Christopher Erskine fouled by Callum Morris, the ref awards a free kick. Ross Forbes takes the direct free kick.34:30
Assist on the goal came from Joshua Falkingham.34:30 Goal scored
Goal! - Andrew Barrowman - Partick 0 - 1 Dunf'mline Andrew Barrowman finds the back of the net with a headed goal from deep inside the penalty area. Partick 0-1 Dunfermline.33:50
Effort on goal by Craig Dargo from just inside the box goes harmlessly over the target.32:43
Effort on goal by Andrew Barrowman from just outside the penalty area goes harmlessly over the target.29:09 Substitution
Substitution Steven Lawless leaves the field to be replaced by Alan Archibald.27:28
Stephen Jordan restarts play with the free kick.27:28 Dismissal
Dismissal Aaron Muirhead is sent off by the referee for professional foul.27:14
Aaron Muirhead challenges Craig Dargo unfairly and gives away a free kick.24:34
Craig Dargo takes a shot. Corner from the left by-line taken by Stephen Jordan, clearance made by Conrad Balatoni.22:55
Centre by Aaron Sinclair, clearance made by Callum Morris.13:15
Outswinging corner taken by Ross Forbes, clearance made by Stephen Husband.12:19
Free kick awarded for an unfair challenge on Stephen O'Donnell by Stephen Jordan. Ross Forbes takes the direct free kick.11:33
Craig Dargo takes a shot. Save made by Graeme Smith.10:25
Centre by Stuart Bannigan.6:01 Booking
Booking Booking for Andrew Geggan for unsporting behaviour.5:49
Ross Forbes fouled by Andrew Geggan, the ref awards a free kick. Free kick taken by Hugh Murray.0:59
Corner taken by Ross Forbes from the right by-line to the near post, clearance by Stephen Husband.0:00
The referee gets the game started.
Live data and text provided by our data suppliers