A double from defender Mark McLaughlin secured Hamilton victory on the opening day of the new season at Ayr.
Micheal McGowan had given the home side the perfect start after eight minutes, driving home from inside the box.
McLaughlin levelled, meeting Douglas Imrie's inswinging corner to head home after 28 minutes.
McLaughlin struck again just before the hour mark, once more meeting an inswinging Imrie corner to head the ball past a helpless Kevin Cuthbert.
Cuthbert, John Robertson, Malone (Armstrong 67), Smith, Campbell, Geggan, Trouten, Burke (McKernan 52), Moffat, Roberts (Wardlaw 64), McGowan. Subs Not Used: McWilliams, Stirling.
McGowan, Trouten, Geggan, Moffat.
Cerny, McAlister, Hendrie (McLaren 85), Gillespie, Mensing, McLaughlin, Imrie, Hopkirk, Anderson, Crawford (Canning 67), Kirkpatrick (Lyle 46). Subs Not Used: Hutton, Chambers.