Rory Boulding scored a hat-trick as Livingston eased to victory at Stark's Park, leaving Raith Rovers deep in the fight against relegation.
The visitors took the lead in the 17th minute when Boulding picked himself up to score from the spot after a foul by Allan Walker.
Rovers almost equalised immediately but for Andrew McNeil who did well to keep out John Baird's header.
Boulding came close to a second but was unlucky to see his effort come back off the bar in the 20th minute.
The hosts were next to hit the woodwork, Damian Casalinuovo's drive coming back off a post six minutes later.
But Boulding did double the advantage on the stroke of half-time when he poked home from Robert Barr's pass.
He completed his hat-trick 10 minutes after the restart, Barr the provider again followed by a close-range finish.
Raith Rovers: McGurn, Jason Thomson, Ellis, Hill, Dyer, Allan Walker, Murray, Jonathan Stewart (Williamson 60), Jamie Walker (Hamill 60), Casalinuovo (Brian Graham 71), Baird. Subs Not Used: Laidlaw, Clarke.
Booked: McGurn, Jason Thomson.
Livingston: McNeil, McCann, Watson, Craig Barr, Fordyce (McDonald 83), Robert Barr, Kyle Jacobs, Scougall (Cummings 46), Keaghan Jacobs (Beaumont 83), Boulding, McNulty. Subs Not Used: Jamieson, Andrew Russell.
Goals: Boulding 17 pen, 45,55.
Ref: Iain Brines