Queen of the South were relegated from the Scottish First Division as Raith Rovers secured their survival.
Raith moved into the lead on the quarter-hour mark, Brian Graham firing home Joe Hamill's cross.
John Baird turned in Jamie Walker's centre to double the hosts' lead nine minutes after the break.
Daniel Carmichael pounced on Parkin's knock down to pull one back for Queens but Pat Clarke's late tap-in ensured a Raith win.
Rovers are three points clear of Ayr United, who occupy the relegation play-off spot, but John McGlynn's side have a much better goal difference.
Raith: McGurn, Jason Thomson, Murray, Hill, Dyer, Jamie Walker (Williamson 89), Allan Walker, Davidson, Hamill, Baird (Casalinuovo 84), Brian Graham (Clarke 74). Subs Not Used: Laidlaw, Jonathan Stewart.
Goals: Brian Graham 15, Baird 54, Clarke 90.
Queen of South: Robinson, Alan Reid (Black 81), McGuffie, Potter, Holt, Johnston (Orsi 77), McLaughlin, McKenna, Carmichael, Parkin, Smith (Reilly 64). Subs Not Used: Atkinson, McShane.
Goals: Carmichael 58.
Ref: Brian Colvin.