Hamilton maintained second place in Division One after Mark McLaughlin's strike gave Billy Reid's side victory over Dundee at Dens Park.
Goalkeeper Tomas Cerny denied Dundee striker Steven Milne with a fingertip save from the striker's shot.
Stephen O'Donnell struck the post for the hosts in the early stages of the second half.
And McLaughlin fired the winner on 66 minutes, latching on to Martin Canning's header to shoot home.
Dundee: Douglas, Irvine, Lockwood, O'Donnell, McKeown, McGregor (Weston 81), Riley, Benedictis (Masterton 78), Milne, Chisholm (Conroy 84), McCluskey. Subs Not Used: Gibson, Webster.
Hamilton: Cerny, McAlister, Gordon, Canning, Mensing, McLaughlin, Imrie, Anderson (Chambers 59), Lyle, Spence (Paterson 70), Crawford (Gillespie 59). Subs Not Used: Hutton, Devlin.
Goals: McLaughlin 66.
Ref: Bobby Madden