The Roman Republic conquered and occupied territories in the Iberian Peninsula that were previously under the control of native Celtic, Iberian, Celtiberian and Aquitanian tribes and the Carthaginian Empire. The Carthaginian territories in the south and east of the peninsula were conquered in 206 BC during the Second Punic War. Control was gradually extended over most of the peninsula without annexations. It was completed after the end of the Roman Republic (27 BC), by Augustus, the first Roman emperor, who annexed the whole of the peninsula to the Roman Empire in 19 BC.
This conquest started with the Roman acquisition of the former Carthaginian territories in southern Hispania and along the east coast as a result of defeating the Carthaginians (206 BC) during the Second Punic War (218–201 BC), after which the Carthaginian forces left the peninsula. This resulted in an ongoing Roman territorial presence in southern and eastern Hispania. In 197 BC, the Romans established two Roman provinces. These were Hispania Citerior (Nearer Spain) along most of the east coast (an area corresponding to the modern Valencia, Catalonia and part of Aragon) and Hispania Ulterior (Further Spain) in the south, corresponding to modern Andalusia.