Jake Hyde scored his fifth goal of the season as Dundee kept up their promotion push by defeating Raith.
The visitors applied the early pressure and Craig McKeown wasted a decent chance after 22 minutes, heading wide from a corner when well placed.
Their pressure paid off 10 minutes before half-time, Nicholas Riley's right-wing cross was met by Hyde's thumping header to give the keeper no chance.
Raith tried to get back into the game, and John Baird's 20-yard piledriver was well gathered by Robert Douglas, but Dundee looked the most dangerous of the two sides, and Ryan Conroy forced a smart save from David McGurn.
Substitute Jamie McCluskey should have made the game safe in the last minute, but headed Conroy's corner straight at McGurn.
Raith: McGurn, Donaldson, Murray, Hill (Dyer 9), Ellis, Allan Walker (Holt 84), Davidson, Hamill, Jamie Walker (Clarke 46), Baird, Smith. Subs Not Used: Roy, Thomson.
Dundee: Douglas, Irvine, McKeown, McGregor, Lockwood, Riley (Mcintosh 89), Chisholm, Rae, Conroy, Hyde (McCluskey 66), Milne. Subs Not Used: Gibson, Bayne, Benedictis.
Goals: Hyde 37.
Ref: David Somers