Managerless Raith Rovers ran out winners in an exciting Fife derby as new Cowdenbeath boss Brian Welsh could not prevent an eighth successive loss.
Raith opened the scoring in the 62nd minute when former Cowdenbeath striker Armand One rose above the defence to head the ball past David Hay.
Pat Clarke soon drove the equaliser into the right-hand corner of the net.
But Halmar Thorarinsson lost his marker to head the winner home from 12 yards after 73 minutes.
Cowdenbeath: Hay, Baxter, Ritchie, Hill, Ellis, Paatelainen, Fusco, Gomis (Fotheringham 46), Kevin McBride (Patrick Scullion 67), Buchanan (Dalziel 81), Clarke.
Subs Not Used: Manzie, Allison.
Goal: Clarke 64.
Raith: Michael Brown, Craig Wilson, Fotheringham, Andrews, Campbell, Fairbairn (Kilgannon 81), Ian Davidson, Silvestro, Curry, One, Thorarinson.
Subs Not Used: Tulloch, Tansey, Bannermen, Fahey.
Booked: Campbell, One.
Goals: One 62, Thorarinson 73.
Ref: M Sproule