In antiquity, the city played an important role due to its strategic location, controlling the narrow coastal plain above Thermopylae that connected southern Greece with Thessaly and the rest of the Balkans. The city formed a polis (city-state). The city was therefore fortified in the 5th century BC, and was contested by the Macedonians, Thessalians and Aetolians until the Roman conquest in the early 2nd century BC. After Alexander the Great's death in 323 BC, the Athenians and other Greeks rebelled against Macedonian overlordship. Antipatros, the regent of Macedon, took refuge behind the substantial walls of the city (Lamian War, 323–322 BC). The war ended with the death of the Athenian general Leosthenes, and the arrival of a 20,000-strong Macedonian army. Lamia prospered afterwards, especially in the 3rd century BC under Aetolian hegemony, which came to an end when Manius Acilius Glabrio sacked the city in 190 BC.