Pat Clarke grabbed a double against his former club as two late goals gave Cowdenbeath victory in the Fife derby.
The away side swept into an early lead, when Clarke chested down a corner to fire high into the net.
Raith Rovers drew level when goalkeeper David Orr dropped Chris Silvestor's cross and substitute Stephen Manson fired home the loose ball.
But Marcus Paatelainen prodded the ball home and Clarke turned in a cross at the near post.
Raith: Michael Brown, Bonar, Fotheringham, Silvestro, Campbell, Lumsden, Janczyk (Manson 66), Harty, One, Ian Davidson, Kilgannon (A Trialist 54).
Subs Not Used: Tulloch, Leiper, Fahey.
Booked: One, A Trialist.
Goal: Manson 73.
Cowdenbeath: Orr, Baxter, Ellis, Fusco, Ritchie, Smith, Gomis (Guy 79), Paatelainen, Dalziel (Kevin McBride 71), Clarke, Buchanan.
Subs Not Used: Patrick Scullion, Fotheringham, Allison.
Goals: Clarke 12, Paatelainen 87, Clarke 90.
Ref: C Murray