During the Punic Wars, Syphax was the king of the largest Numidian kingdom, the Masaesyli. In 213 BC, Syphax ended his alliance with Carthage. In 208 BC, he rejoined after marrying Sophonisba, daughter of Hasdrubal Gisco.