Around 950 BC the city came under the influence of Carthage during the reign of Queen Dido/Elissa, In 309 BC, during the Greek–Punic Wars and after the defeat of Agathocles, the city and Sicily returned to the Carthaginian Republic.