This started the Second punic war and in 218 the Romans embarked in Spain to confront Hannibal. But instead of fighting the Romans he started abandoning Spain moving towards Rome crossing the French Alps with a huge army and many elephants (since Alexander the Great elephants were used in war time in Hellenistic times)
The war was to take 17 years before Hannibal finally gave up. This did not happen until Escipion the African cut his supply lines coming from Spain and forced his brother Hasdrubal to come to Italy with his army where he was killed.
Pax Romana
After the Second Punic War finished it took the Romans almost 200 years to gain control over the Iberian Peninsula and with Emperor Augustus started the peace period that goes under the name pax romana.
In later centuries Hispania (as the Romans called Spain) became a very important province. Emperor Trajan and Hadrian were both born in Hispania (in the city of Italica, West of the modern Seville), as it also applies to the later Emperor Marcus Aurelius and the poet Seneca (born in Córdoba, the Roman Corduba). Trajan and Hadrian were emperors when the Roman Empire reached its largest geographical size.
Spain also came to play a leading role in the Roman Empire for faming. Hispania exported gold, silver, tin, lead, wool, Olive oil, wheat, wine, fish and Garum (salted and seasoned fish that could be mixed up with water, wine, or oil, considered aphrodisiac).
The name Hispania
The Romans called Spain Hispania. There is disagreement about where this word comes from. The origins of the word Hispania has, among others the following explanations: the word may derive from the Phoenician "ishafania", which means Hare island or Rabbit island. Another explanation is that the word comes from the Iberian or Celtic word for Seville, Hispalis, which in turn may descend from Heliopolis (Greek Sun City).
Several cities in the modern Spain takes its name after the original cities, founded by the Romans. This applies to cities such as Zaragoza (there be named after the Emperor Augustus, Caesaraugusta), Mérida (Augusta Emerita) and Valencia (Valentia, latin for courage).
From two to nine provinces
Spain was divided into two provinces in 197 BC, Hispania Ulterior and Hispania Citerior. When Augustus came to power the peninsula was divided into three provinces: Tarraconensis, Baetica and Lusitania. Finally Hispania was divided into 9 provinces in the beginning of the 4. Century.