On the Adriatic coast the immediate interests of Rome were limited to rendering the sea safe for Italian trade. It was with this object that, in 229, the first Roman expedition crossed the Adriatic, and inflicted severe chastisement on the Illyrian pirates of the opposite coast. This expedition was the means of estab lishing for the first time direct political relations between Rome and the states of Greece proper, to many of which the suppression of piracy in the Adriatic was of as much importance as to Italy. Alliances were concluded with Corcyra, Epidamnus and Apollonia ; and embassies explaining the reasons which had brought Roman troops into Greece were sent to the Aetolians, the Achaeans and even to Athens and Corinth. Everywhere they were well received, and the admission of the Romans to the Isthmian games (228) formally acknowledged them as the natural allies of the free Greek states against both barbarian tribes and foreign despots. Mean while Carthage had acquired a possession which promised to compensate her for the loss of Sicily, Sardinia and Corsica. The genius of her greatest citizen and soldier, Hamilcar Barca, had appreciated the enormous value of the Spanish peninsula, and con ceived the scheme of founding there a Carthaginian dominion which should not only add to the wealth of Carthage, but supply her with a base of operations for a war of revenge with Rome. The conquest of southern and eastern Spain, begun by Hamilcar (236– 228) and carried on by his kinsman Hasdrubal (228-221), was completed by his son Hannibal, who, with all his father's genius, inherited also his father's hatred of Rome, and by 219 the author ity of Carthage had been extended as far as the Ebro (see SPAIN, History). Rome's ancient ally Massilia (mod. Marseilles) was especially disturbed by these advances, for she had trading posts on the coast of Spain which would become unprofitable if Carthage conquered the whole of the interior and drew the com merce of the peninsula southwards to the Punic ports. Further more, since Carthage forbade Massiliot traders to make use of the straits of Gibraltar, Massiliot trade in British tin would be endangered if Carthage succeeded in reaching southern Gaul. From the fact that Marseilles lent her whole navy to Rome when the war broke out we may assume that her envoys were active in reporting the advance of Carthage in Spain and in interpreting that advance as aired at Rome. Rome finally was induced to act. A defensive alliance was signed with Saguntum, a seaport of Spain which was still independent, and Hasdrubal was asked to promise that Carthage should not carry her arms beyond the Ebro river (226).
The war in Italy was now virtually ended, for, though during four years more Hannibal stood at bay in a corner of Bruttium, he was powerless to prevent the restoration of Roman authority throughout the peninsula. Sicily was once more secure ; and finally in 206, the year after the victory on the Metaurus, the successes of the young P. Scipio in Spain (211-206) were crowned by the complete expulsion of the Carthaginians from the peninsula. On his return from Spain Scipio eagerly urged an immediate invasion of Africa. The senate hesitated ; but Scipio gained the day. He was elected consul for 205, and given the province of Sicily, with permission to cross into Africa if he thought fit. Voluntary contributions of men, money and supplies poured in to the support of the popular hero ; and by the end of 205 Scipio had collected in Sicily a sufficient force for his purpose. In 204 he crossed to Africa, where he was welcomed by the Nu midian prince Massinissa, whose friendship he had made in Spain. In 203 he twice defeated the Carthaginian forces, and a large party at Carthage were anxious to accept his offer of negotiations. But the advocates of resistance triumphed.
Hannibal was recalled from Italy, and returned to fight his last battle against Rome at Zama, where Scipio, who had been continued in command as proconsul for 202 by a special vote of the people, won a complete victory. The war was over. The Roman assembly voted that the Carthaginian request for peace should be granted, and entrusted the settlement of the terms to Scipio and a commission of ten senators. Carthage was allowed to retain her territory in Africa ; but she undertook to wage no wars outside Africa, and none inside without the consent of Rome. She surrendered all her ships but ten triremes, her elephants, and all prisoners of war, and agreed to pay an indemnity of 10,000 talents in 5o years. The Numidian Massinissa (q.v.) was rewarded by an increase of territory, and was enrolled among the "allies and friends" of the Roman people.