Ayr United scored twice late on to claim a victory which leaves East Fife still in trouble at the wrong end of the Second Division table.
The second-bottom Fifers are now winless in nine league games and have lost five of their last six but remain just two points adrift of Stranraer.
They took the lead after just 15 minutes when Scott Durie converted Robert Barr's left-wing cross with a well-taken finish from 12 yards.
And that was the way it remained until Liam Buchanan latched on to David Winters' cross to convert low past Michael Brown on 79 minutes.
Ayr then completed the turnaround with just three minutes remaining. Brown parried Buchanan's long-range effort and Winters was on hand to convert the rebound.
Ayr United: Graeme Smith, John Robertson, Brownlie, Christopher Smith, McCann, Shankland (Winters 70), McLaughlin, Crawford, Donald, Moffat, Buchanan. Subs Not Used: Brown, McStay, Wyllie, Marenghi.
Booked: Brownlie, Christopher Smith.
Goals: Buchanan 79, Winters 87.
East Fife: Michael Brown, Durie, Campbell, White, Sloan, McCormack, Willis, McBride, Paul McManus (Gormley 80), Samuel (Jamieson 85), Robert Barr. Subs Not Used: Antell, Keenan, Malcolm.
Booked: Robert Barr.
Goals: Durie 15.
Ref: Don Robertson