Raith moved off the foot of the Division One table and out of the relegation zone after a victory at Partick.
Striker John Baird got the game's only goal just after the hour mark.
A corner from Joe Hamill was flicked on by Laurence Ellis and Baird headed into the top corner at the back post.
The visitors had goalkeeper David McGurn to thank after he made two fine second-half saves to keep them in the game.
He tipped Paul Cairney's swirling corner around the post and stopped the same player shortly after Baird's goal.
It was the second time Rovers had defeated Partick this season following their 2-0 victory on the road earlier this year.
Partick: Fox, Paton, Balatoni, Archibald (Scott Robertson 76), Sinclair, Cairney, Rowson, O'Donnell, Doolan, Craig Dargo (Erskine 46), Elliot (Stewart 75). Subs Not Used: Scully, Bannigan.
Raith: McGurn, Donaldson, Hill, Ellis, Dyer (Jamie Walker 88), Allan Walker, Murray, Davidson (Williamson 75), Smith, Baird, Hamill. Subs Not Used: Roy, Holt, Reynolds.
Booked: Dyer, Murray, Williamson.
Goals: Baird 66.
Ref: Mike Tumilty