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.
Kilmarnock_v_Hamilton_sw1Kilmarnock_v_Hamilton_sw2Kilmarnock_v_Hamilton_sw3Kilmarnock_v_Hamilton_sw4Kilmarnock_v_Hamilton_sw5Kilmarnock_v_Hamilton_sw6Kilmarnock_v_Hamilton_sw7Kilmarnock_v_Hamilton_sw8Kilmarnock_v_Hamilton_sw9Kilmarnock_v_Hamilton_sw10Kilmarnock_v_Hamilton_sw11Kilmarnock_v_Hamilton_sw12Kilmarnock_v_Hamilton_sw13Kilmarnock_v_Hamilton_sw14Kilmarnock_v_Hamilton_sw15Kilmarnock_v_Hamilton_sw16Kilmarnock_v_Hamilton_sw18Kilmarnock_v_Hamilton_sw19Kilmarnock_v_Hamilton_sw20Kilmarnock_v_Hamilton_sw22