Dundee FC have been relegated to the Championship.
Needing three points at home against Hamilton to have any chance of survival, they instead fell to a tenth straight defeat, with former Dundee United man Tony Andreu delivering the killer blow with a late penalty.
The result ends the Dark Blues’ five-year spell in Scotland’s top division.
Elsewhere, Falkirk have been relegated to League 1 despite staging a late fightback to beat Championship title winners Ross County 3-2.
Brechin City have suffered back-to-back relegations after a 1-1 draw at home to Stenhousemuir consigned them to League 2.