The Romans formally disestablished the Macedonian monarchy by installing four separate allied republics in its stead, their capitals located at Amphipolis, Thessalonica, Pella, and Pelagonia. The Romans imposed severe laws inhibiting many social and economic interactions between the inhabitants of these respective republics, including the banning of marriages between them and the (temporary) prohibition on the use of Macedonia's gold and silver mines. However, a certain Andriscus claiming Antigonid descent rebelled against the Romans and was pronounced king of Macedonia, defeating the army of the Roman praetor Publius Iuventius Thalna during the Fourth Macedonian War (150–148 BC). Despite this, Andriscus was defeated in 148 BC at the second Battle of Pydna by Quintus Caecilius Metellus Macedonicus, whose forces occupied the kingdom. This was followed in 146 BC by the Roman destruction of Carthage and victory over the Achaean League at the Battle of Corinth, ushering in the era of Roman Greece and the gradual establishment of the Roman province of Macedonia.