Numidia (Berber: Inumiden; 202–40 BC) was the ancient kingdom of the Numidians located in northwest Africa, initially originating from modern-day Algeria, but later expanding across what is today known as Tunisia, Libya, and some parts of Morocco. The polity was originally divided between the Massylii in the east and the Masaesyli in the west. During the Second Punic War (218–201 BC), Masinissa, king of the Massylii, defeated Syphax of the Masaesyli to unify Numidia into one kingdom. The kingdom began as a sovereign state and later alternated between being a Roman province and a Roman client state.
Numidia, at its largest extent, was bordered by Mauretania to the west, at the Moulouya River,[3] Africa Proconsularis to the east, the Mediterranean Sea to the north, and the Sahara to the south. It was one of the first major states in the history of Algeria and the Berbers.