Kane Hemmings scored a last-ditch equaliser as Cowdenbeath held Raith to a 3-3 draw.
The visitors drew first blood in the 11th minute when Greg Stewart tucked the ball past Rovers goalkeeper Ross Laidlaw from six yards.
Raith improved as the first half went on and they equalised in the 32nd minute when Douglas Hall headed home from close range after good work from Lewis Vaughan.
Calum Elliot put the hosts in front in the 60th minute before Hemmings levelled things up from the spot in the 74th minute after Laidlaw had fouled Kyle Miller in the box.
Callum Booth made it 3-2 from the penalty spot after Elliot was fouled by Hemmings, before the Cowden forward made amends by making it 3-3 in stoppage time.