The siege of Zama, part of the Jugurthine War, was an investment of the Numidian town of Zama by a Roman army. The Romans were commanded by Quintus Caecilius Metellus, one of the consuls of 109 BC, while the Numidians were under the overall command of Jugurtha, the king of Numidia. The Romans' main objective was to lure Jugurtha into a set-piece battle; the Numidians had been wearing down the Roman legions by guerilla warfare and the Roman commander hoped the siege would pressure the Numidian king into giving battle. Jugurtha did not let himself be goaded into a pitched battle and kept up his opportune attacks while the defenders of Zama kept the Romans at bay. Failing to take the city and failing to provoke the Numidian king into entering a set-piece battle, the Romans gave up on the siege and marched back to the Roman province of Africa.
Background
King Masinissa of Numidia, who was a steadfast ally of Rome, died in 149, he was succeeded by his son Micipsa, who ruled from 149 to 118 BC. At the time of his death Micipsa had three potential heirs, his two sons, Adherbal and Hiempsal, and an illegitimate nephew, Jugurtha. Jugurtha had fought under Scipio Aemilianus at the siege of Numantia, where he had formed a friendship with Roman aristocrats and learned about Roman society and military tactics. Micipsa, worried that after his death Jugurtha would usurp the kingdom from his own somewhat less able sons, adopted him, and bequeathed the kingship jointly to his two sons and Jugurtha. After Micipsa's death the three kings fell out, and ultimately agreed between themselves to divide their inheritance into three separate kingdoms. When they were unable to agree on the terms of the division Jugurtha declared open war on his cousins. Hiempsal, the younger and braver of the brothers, was assassinated by Jugurtha's agents. Jugurtha gathered an army and marched against Adherbal, who fled to Rome. There he appealed to the Roman Senate for arbitration.
Although the Senate were securities for Micipsa's will, they now allowed themselves to be bribed by Jugurtha into overlooking his crimes, and organized a commission, led by the ex-Consul Lucius Opimius, to fairly divide Numidia between the remaining contestants in 116 BC. Jugurtha bribed the Roman officials in the commission and was allotted the more fertile and populous western half of Numidia, while Adherbal received the east. Powerless Adherbal accepted and peace was made. Shortly after, in 113 BC, Jugurtha again declared war on his brother, and defeated him, forcing him to retreat into Cirta, Adherbal's capital. Adherbal held out for some months, aided by a large number of Romans and Italians who had settled in Africa for commercial purposes. From inside his siege lines, Adherbal appealed again to Rome, and the Senate dispatched a message to Jugurtha to desist. The latter ignored the demand, and the Senate sent a second commission, this time headed by Marcus Scaurus, a respected member of the aristocracy, to threaten the Numidian king into submission. The king, pretending to be open to discussion, protracted negotiations with Scaurus long enough for Cirta to run out of provisions and hope of relief. When Scaurus left without having forced Jugurtha to a commitment, Adherbal surrendered. Jugurtha promptly had him executed, along with the Romans who had joined in the defence of Cirta. But the deaths of Roman citizens caused an immediate furore among the commoners at home, and the Senate, threatened by the popular tribune Gaius Memmius, finally declared war on Jugurtha in 111 BC.
In 111 BC the consul Lucius Calpurnius Bestia commanded a Roman army against Jugurtha, but he allowed himself to be bribed. The following year the consul Spurius Postumius Albinus succeeded the command against the Numidian king, but he let himself be bribed too. Spurius's brother, Aulus Postumius Albinus, allowed Jugurtha to lure him into the desolate wilds of the Sahara, where the cunning Numidian king, who had reportedly bribed Roman officers to facilitate his attack, was able to catch the Romans at a disadvantage. Half the Roman army were killed, and the survivors were forced to pass under the yoke in a disgraceful symbolism of surrender. The Roman Senate, however, when it heard of this capitulation, refused to honour the conditions and continued the war.