A Peter MacDonald-inspired Morton came from behind to beat Raith Rovers in a dramatic Scottish Cup fourth-round encounter in Kirkcaldy.
Marc Smyth brought down John Baird, whose 39th-minute penalty was saved by Colin Stewart, but Patrick Clarke pounced on the rebound.
Substitute MacDonald played in Archie Campbell to place home the Morton equaliser after 67 minutes.
McDonald fired the winner from the penalty spot nine minutes later.
The former St Johnstone striker had himself been fouled by Grant Murray before rifling his 12th goal of the sason past goalkeeper David McGurn.
Raith: McGurn, Donaldson, Murray, Davidson, Ellis, Williamson (Jamie Walker 79), Allan Walker, Hamill, Baird, Clarke, Casalinuovo (Smith 55). Subs Not Used: Laidlaw, Colin Wilson, Callachan. Booked: Clarke, Murray.
Goals: Clarke 39.
Morton: Stewart, Derek Young (Weatherson 47), Graham,Smyth, O'Ware, Bachirou, McGeouch (Di Giacomo 56), O'Brien, Tidser, Campbell, Jackson (MacDonald 60). Subs Not Used: McGinley, Fitzharris.
Goals: Campbell 67, MacDonald 76 pen.
Ref: Steven McLean