A late goal by Ryan Conroy lifted Dundee above opponents Raith Rovers and into seventh place in the First Division.
John Baird's long-range effort for Raith was easily saved by goalkeeper Rab Douglas in the first half.
Leighton Mcintosh fired wide for the hosts after the restart.
Raith keeper David McGurn denied Nicholas Riley and then Stephen O'Donnell as Dundee pressed for a winner.
But McGurn was beaten seven minutes from the end as Conroy headed Riley's cross into the net.
Dundee: Douglas, Irvine, Lockwood, Weston (McKeown 22), McGregor, Riley, Rae, O'Donnell, Conroy, Elliot (Hyde 4), Mcintosh, Hyde (McCluskey 72). Subs Not Used: Gibson, Chisholm.
Goals: Conroy 83.
Raith: McGurn, Donaldson, Dyer, Ellis (Prychynenko 30), Murray, Williamson (Reynolds 88), Hill, Walker, Hamill, Baird, Brian Graham. Subs Not Used: Roy, Thomson, Callachan.
Booked: Dyer, Brian Graham, Prychynenko.
Ref: Calum Murray