In the beginning of B.C. 203 Scipio planned a night-attack upon the two camps occupied by Hasdrubal and Syphax. With the assistance of Masinissa, his enterprise was crowned with success: the two camps were burned to the ground, and only a few of the enemy escaped the fire and the sword. Among these, however, were both Hasdrubal and Syphax; the former fled to Carthage, where he persuaded the Senate to raise another army, and the latter retreated to his native dominions, where he likewise collected fresh troops. But their united forces were again defeated by Scipio. Hasdrubal did not venture to make his appearance again in Carthage, and Syphax once more fled into Numidia. Scipio did not give the Numidian prince any repose; he was pursued by Lælius and Masinissa, and finally taken prisoner. Among the captives who fell into their hands was Sophonisba, the wife of Syphax, whom Masinissa had long loved, and had expected to marry when she was given to his rival. Masinissa now not only promised to preserve her from captivity, but, to prevent her falling into the hands of the Romans, determined to marry her himself. Their nuptials were accordingly celebrated without delay; but Scipio, fearful of the influence which she might exercise over his ally, sternly upbraided him with his weakness, and insisted on the immediate surrender of the princess. Unable to resist this command, Masinissa spared her the humiliation of captivity by sending her a bowl of poison, which she drank without hesitation, and thus put an end to her own life.
These repeated disasters so alarmed the Carthaginians that they resolved to recall Hannibal and Mago. Hannibal quitted Italy in B.C. 203, to the great joy of the Romans. For more than 15 years had he carried on the war in that country, laying it waste from one extremity to another; and during all this period his superiority in the field had been uncontested. The Romans calculated that in these 15 years their losses in the field alone had amounted to not less than 300,000 men; a statement which will hardly appear exaggerated when we consider the continued combats in which they were engaged by their ever-watchful foe.
As soon as Hannibal landed in Africa the hopes of the Carthaginians revived, and they looked forward to a favorable termination of the war. Hannibal, however, formed a truer estimate of the real state of affairs; he saw that the loss of a battle would be the ruin of Carthage, and he was therefore anxious to conclude a peace before it was too late. Scipio, who was eager to have the glory of bringing the war to a close, and who feared lest his enemies in the Senate might appoint him a successor, was equally desirous of a peace. The terms, however, which the Roman general proposed seemed intolerable to the Carthaginians; and as Hannibal, at a personal interview with Scipio, could not obtain any abatement of the hard conditions, he was forced, against his will, to continue the war. Into the details of the campaign, which are related very differently, our limits will not permit us to enter. The decisive battle was at length fought on the 19th of October, B.C. 202, on the Bagradas, not far from the city of Zama; and Hannibal, according to the express testimony of his antagonist, displayed on this occasion all the qualities of a consummate general. But he was now particularly deficient in that formidable cavalry which had so often decided the victory in his favor; his elephants, of which he had a great number, were rendered unavailing by the skillful management of Scipio; and the battle ended in his complete defeat, notwithstanding the heroic exertions of his veteran infantry. Twenty thousand of his men fell on the field of battle, as many were made prisoners, and Hannibal himself with difficulty escaped the pursuit of Masinissa. Upon his arrival at Carthage he was the first to admit the magnitude of the disaster, and to point out the impossibility of the farther prosecution of the war. The terms, however, now imposed by Scipio were much more severe than before. Carthage had no alternative but submission; but the negotiations were continued for some time, and a final treaty was not concluded till the following year (B.C. 201). By this treaty it was agreed that the Carthaginians were to preserve their independence and territory in Africa, but to give up all claims to any foreign possessions; that they were to surrender all prisoners and deserters, all their ships of war except ten triremes, and all their elephants; that they were not to make war in Africa, or out of Africa, without the consent of Rome; that they were to acknowledge Masinissa as king of Numidia; that they were to pay 10,000 talents in silver in the course of fifty years.
Scipio returned to Italy in B.C. 201, and entered Rome in triumph. He was received with universal enthusiasm; the surname of Africanus was conferred upon him, and the people, in their gratitude, were anxious to distinguish him with the most extraordinary marks of honor. It is related that they wished to make him Consul and Dictator for life, and to erect his statue in the Comitia, the Senate-house, and even in the Capitol, but that he prudently declined all these invidious distinctions.