The Massylii or Maesulians (Neo-Punic: 𐤌𐤔𐤋𐤉𐤉𐤌, MŠLYYM[1]) were a Berber[2][3] federation in eastern Numidia ( present-day Algeria), which was formed by an amalgamation of smaller tribes during the 4th century BC.[4] They were ruled by a king. On their loosely defined western frontier were the powerful Masaesyli. To their east lay the territory of the rich and powerful Carthaginian Republic. Their relationship to Carthage resembled that of a protectorate.[4] Carthage maintained its dominance over the Massylii by skillful diplomatic manoeuvering, playing off local tribal and kingdom rivalries.[4] The principal towns of the Massylii were Cirta, Tébessa and Thugga in modern day Algeria and Tunisia
In 218 BC, war broke out between the Carthaginians and the Romans. The Massylii and the Masaesyli, who both possessed a strong and proficient cavalry force, were allied to the Carthaginian cause and performed valuable service for them in Iberia and Italy.[5] In 206 BC, a Massylian prince called Masinissa defected to the Romans.[6] When the Romans finally defeated the Carthaginians in 202 BC, they amalgamated the territory of the Massylii and the Masaesyli into one kingdom and gave it to Masinissa, who established the first recognized Berber State[3] and ruled it until his death in approximately 148 BC.[7][8]