Cowdenbeath netted a late winner to leave Airdrie United five points adrift at the bottom of the First Division.
Jordan Moore tucked the ball past Colin Stewart to give Airdrie the lead but Marc McKenzie fired Cowden level on 13 minutes.
Greg Stewart's tap-in gave the hosts the lead for the first time midway through the second half.
Jordan Kirkpatrick's 20-yard strike levelled matters again but Craig Moore scored from close range to settle the match two minutes from the end.
Cowdenbeath: Colin Stewart, Brett, Milne, Armstrong, Adamson, Stevenson, O'Brien, Linton (Ramsay 79), McKenzie, Moore (Naismith 90),Greg Stewart (Coult 71). Subs Not Used: Wilson, McAllister.
Booked: O'Brien, Moore.
Goals: McKenzie 13, Greg Stewart 68, Moore 88.
Airdrie Utd: Robbie Thomson, O'Neil, Lamie, Lilley, Warren, Blockley, Buchanan, Hetherington, McLaren (Lynch 80), Moore (Bain 59), Donnelly (Kirkpatrick 70). Subs Not Used: Arthur, Liam Watt.
Goals: Moore 12, Kirkpatrick 82.
Ref: Euan Norris