query: Who was the last ruler of Carthage?
passage: List of monarchs of Carthage
In 480 BC, following Hamilcar I's death, the king lost most of his power to an aristocratic Council of Elders. In 308BC, Bomilcar attempted a coup to restore the monarch to full power, but failed, which led to Carthage becoming in name, as well as fact, a republic.[1]
passage: History of Carthage
In 204 Roman armies under Scipio landed at Utica near Carthage, which forced Hannibal's return to Africa. One Numidian king, Syphax, supported Carthage; however, Syphax met an early defeat. Rome found an old ally in another Berber king of Numidia, the scrambling Masinissa, who would soon grow in power and fame. Decisively, he chose to fight with Rome against Carthage. At the Battle of Zama in 202 the Roman general Scipio Africanus, with Masinissa commanding Numidian cavalry on his right wing, defeated Hannibal Barca, ending the long war. Carthage lost all of its trading cities and silver mines in Hispania, and its other possessions in the western Mediterranean; also lost: Carthage's political influence over the Berber Kingdoms (Numidia and Mauretania), which became independent Roman allies. Masinissa, traditional king of the Numidian Massyli, was restored to an enlarged realm. Carthage, reduced to its immediate surroundings, its actions restricted by treaty, was required to pay a very large indemnity to Rome over fifty years.