In the course of the Second Punic War, King Syphax of the Masaesyli allied himself with the Roman Republic and the armies led by Scipio Africanus, while the Maesulians ruled by Masinissa sided with Carthage.