Steven McDougall scored a brace as Dumbarton came from 3-1 down to boost their survival hopes with a shock win at Dunfermline.
Stephen Husband and Andrew Dowie both had early efforts but failed to test visiting goalkeeper Stephen Grindlay.
The hosts broke the deadlock four minutes before the interval when Ryan Wallace produced a neat finish inside the penalty area after some good work by Andrew Geggan.
Andrew Barrowman doubled the advantage four minutes after the restart with a thumping drive from 20 yards.
The visitors pulled a goal back two minutes later when McDougall converted Paul McGinn's cross.
Barrowman restored their two-goal cushion after 56 minutes with a cool finish from close range but Dumbarton replied again through Chris Turner's stunning 25-yard strike.
The Sons drew level for the first time in the 65th minute through Scott Agnew's low drive before McDougall fired in his second from Mark Gilhaney's pass to snatch them maximum points six minutes from time.
Dunfermline: Gallacher, McMillan, Dowie, Potter, Jordan, Geggan (Dargo 86), Husband, Thomson (Falkingham 61), Cardle (Kirk 83), Barrowman, Wallace. Subs Not Used: Hrivnak, Kane.
Goals: Wallace 41, Barrowman 49, 56.
Dumbarton: Grindlay, McGinn, Graham, Smith, Creaney, Gilhaney, Agnew, Turner, McDougall, Phinn (Lister 58), Prunty (Lamont 90). Subs Not Used: Ewings, Murray, Ronald.
Goals: McDougall 51, Turner 59, Agnew 65, McDougall 84.
Ref: Alan Muir