Numidia (Punic: 𐤌𐤌𐤋𐤊𐤕 𐤌𐤔𐤋𐤉𐤉𐤌, romanized: MMLKT MŠLYYM) was the ancient kingdom of the Numidians in northwest Africa, initially comprising the northern part of what is now Algeria, but later expanding into modern Tunisia and Libya. The polity was originally divided between the Massylii state in the east (Capital: Cirta) and the Masaesyli state in the west (Capital: Siga). During the Second Punic War (218–201 BC), Masinissa, king of the Massylii, defeated Syphax of the Masaesyli to unify Numidia into the first unified Berber state for Numidians in present-day Algeria. Initially a sovereign state and an ally of Rome, the kingdom later alternated between being a Roman province and a Roman client state.
Numidia, at its foundation, was bordered by the Moulouya River to the west, Africa Proconsularis and Cyrenaica to the east. the Mediterranean Sea to the north, and the Sahara to the south so that Numidia entirely surrounded Carthage except towards the sea. before Masinissa expanded past the Moulouya and vassalizing Bokkar, and reaching the Atlantic ocean to the west.