Massylii

The Massylii or Maesulians (Neo-Punic: 𐤌𐤔𐤋𐤉𐤉𐤌, ) were a Berber  federation in eastern Numidia (central and eastern Algeria), which was formed by an amalgamation of smaller tribes during the 4th century BC. 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. Carthage maintained its dominance over the Massylii by skillful diplomatic manoeuvering, playing off local tribal and kingdom rivalries. The principal towns of the Massylii were Cirta, Tébessa and Thugga in modern-day Algeria and Tunisia.

Role in the Second Punic War
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. In 206 BC, a Massylian prince called Masinissa defected to the Romans. When the Romans and Massyli finally defeated the Carthaginians in 202 BC after the battle of Zama, Massinissa took over the territory of the Massylii and the Masaesyli and formed it into one kingdom called Numidia, he established the first unified Berber State in North Africa that is entirely ruled by berbers and ruled it until his death in approximately 148 BC.