Scott Tunbridge celebrated his return to Hamilton by netting their first goal then setting up their second in the Scottish League Challenge Cup.
Third Division Berwick took a surprise lead after just two minutes when Robbie Horn turned in an Iain Thomson corner.
Tunbridge scrambled in a close-range goal and then crossed for Javier Payo to put the Accies in front.
With time running out, Richard Offiong ran on to a through ball by Payo to round off the scoring.
Hamilton Accies: McEwan, Stevenson, McCabe, Elebert, Fleming, Easton, Wilson, Gilhaney, Turnbridge, Payo, Offiong. Subs Not Used: Parratt, McCarthy, Agnew, McLeod, Jellema.
Goals: Turnbridge 24, Payo 54, Offiong 90.
Berwick Rangers: Flockhart, Horn (Fraser 35), Wood, Smith, Notman (Robbie Manson 23), Thomson, Gary Greenhill (Paliczka 71), Noble, Campbell, Haynes, McCallum. Subs Not Used: Lucas, O'Connor.
Booked: Gary Greenhill. Goal: Horn 2.
Ref: S Conroy