Numidia (202 BC – 46 BC) was an Ancient Berber kingdom in what is now Algeria and a smaller part of Tunisia, in North Africa. Numidia was originally divided between Massylii in the east and Masaesyli in the west. During the Second Punic War (218-201 BC), Massinissa, 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 being a Roman client state.