Under Greek rule, Reggio became a Polis of Magna Græcia and an ally of Athens; it was also first an ally and then an enemy of nearby Locri. Rhégion was governed by the Messenians, from 737 to 461 BC; by Syracuse from 387 to 351 BC, when it was known as Phœbèa and subsequently by the Campanians but between the 5th–3rd centuries BC, from time to time, it was also a republic. Reggio was one of the most important cities in Greater Greece, reaching great economic and political power during the 5th and 6th centuries BC under the Anaxilas government. Anaxilas allowed Reggio to rule over all the Messina Strait, including Zancle (modern Messina). Rhegion later allied with Athens during the Peloponnesian War until 387 BC when the city was taken by the Syracusans.