The Romans took over the territories of the Carthaginians in southern Hispania when they defeated them at the Battle of Ilipa in 206 BC during the Second Punic War (218–201 BC). After the war, they established two Roman provinces: Hispania Citerior (Nearer Spain) along most of the east coast, an area roughly corresponding to the modern autonomous communities of Aragon, Catalonia and Valencia, and Hispania Ulterior (Further Spain) in the south, roughly corresponding to modern Andalusia. There were numerous rebellions by many tribes of Hispania, including tribes both inside and outside Roman territory, in most years for 98 years, until the end of the First Celtiberian War in 179 BC.