Steven Craig scored a late winner as Partick beat Raith 3-2.
The visitors went ahead in the 13th minute when Greig Spence found the bottom corner of the net from 10 yards out to score his second goal in as many games.
Partick equalised in the 21st minute when Stuart Bannigan's left-footed effort found the bottom corner from 12 yards out.
The hosts then took the lead 11 minutes later when Steven Lawless struck past Raith stopper Ross Laidlaw from inside the area after good work from defender Aaron Muirhead on the right wing.
Brian Graham tapped in from close range to draw Raith level in the 81st minute before Partick's Craig swept in Ross Forbes' cross from six yards out to secure the points.