in 344 BC. The following year the Corinthian Timoleon installed a democratic regime in the city after he exiled Dionysius and defeated Hicetas. The long series of internal struggles had weakened Syracuse's power on the island, and Timoleon tried to remedy this, defeating the Carthaginians in the Battle of the Crimissus (339 BC). Hellenistic period After Timoleon's death the struggle among the city's parties restarted and ended with the rise of another tyrant, Agathocles, who seized power with a coup in 317 BC. He resumed the war against Carthage, with alternate fortunes. He was besieged in Syracuse by the Carthaginians in 311 BC, but he escaped from the city with a small fleet. He scored a moral success, bringing the war to the Carthaginians' native African soil, inflicting heavy losses to the enemy. The defenders of Syracuse destroyed the Carthaginian army which besieged them. However, Agathocles was eventually defeated in Africa as well. The war ended with another treaty of peace which did not prevent the Carthaginians from interfering in the politics of Syracuse after the death of Agathocles (289 BC). They laid siege to Syracuse for the fourth and last time in 278 BC. They retreated at the arrival of king Pyrrhus of Epirus, whom Syracuse had asked for help. After a brief period under the rule of Epirus, Hiero II seized power in 275 BC. Hiero inaugurated a period of 50 years of peace and prosperity, in which Syracuse became one of the most renowned capitals of Antiquity. He issued the so-called Lex Hieronica, which was later adopted by the Romans for their administration of Sicily; he also had the theatre enlarged and a new immense altar, the "Hiero's Ara", built. Under his rule lived the most famous Syracusan, the mathematician and natural philosopher Archimedes. Among his many inventions were various military engines including the claw of Archimedes, later used to resist the Roman siege of 214–212 BC. Literary figures included Theocritus and others. Hiero's successor, the young Hieronymus (ruled from 215 BC), broke the alliance with the Romans after their defeat at the Battle of Cannae and accepted Carthage's support. The Romans, led by consul Marcus Claudius Marcellus, besieged the city in 214 BC. The city held out for three years, but fell in 212 BC. The successes of the Syracusians in repelling the Roman siege had made them overconfident. In 212 BC, the Romans received information