Cowdenbeath suffered the loss of manager Mixu Paatelainen before kick-off and a late goal to Ayr as they were held to a draw at Central Park.
The home side went ahead when a Liam Duchanan effort took a deflection to Laurie Ellis, who curled a great shot into the net from 12 yards.
Pat Clarke shot wide from only six yards and Ayr goalkeeper Mark McGeown pulled off a string of great saves.
And Chris Strain unleashed a 25-yard rocket to level the scores.
Cowdenbeath: Hay, Guy, Ritchie, Smith, Hill, Paatelainen, Fusco, Gomis (Fotheringham 74), Ellis, Clarke (Dalziel 52), Buchanan.
Subs Not Used: Paul McBride, Kevin McBride, Allison.
Goal: Ellis 44.
Ayr: McGeown, Miller, Casey, Robertson (Campbell 45), Lowing, Strain (Pettigrew 84), Forrest, Stevenson, Caddis (Wardlaw 56), Vareille, Dunn.
Subs Not Used: Brian Reid, Johnson.
Goal: Strain 80.
Ref: C Hardie