Fresh from its victories in the Second Punic War, the Roman Republic continued its expansion in the western Mediterranean, campaigning in the Iberian peninsula throughout the century and annexing the North African coast after the destruction of the city of Carthage at the end of the Third Punic War. They became the dominant force in the Aegean by destroying Antigonid Macedonia in the Macedonian Wars and Corinth in the Achaean War. The Hellenistic kingdoms of Ptolemaic Egypt and Attalid Pergamon entered into subordinate relationships with the Romans – Pergamon was eventually annexed. The end of the century witnessed the reform of the Roman army from a citizen army into a voluntary professional force, under the guidance of the noted general and statesman Gaius Marius (Marian Reforms).