Alexei Eremenko thundered home a last-gasp free-kick to snatch a home win for Kilmarnock over high-flying Hamilton.
A stalemate had looked inevitable as Killie keeper Craig Samson had kept out Accies' long-range shots at goal and the home side rarely threatened.
Accies' Darian MacKinnon headed over Samson's crossbar in a late attack.
But when Jamie Hamill was brought down by Michael Devlin deep in injury time, substitute Eremenko smacked in the set-piece from 20 yards to win the game.
This gallery is empty.