Morocco later became a realm of the Northwest African civilisation of ancient Carthage, and part of the Carthaginian empire. The earliest known independent Moroccan state was the Berber kingdom of Mauretania, under King Baga. This ancient kingdom (not to be confused with the modern state of Mauritania) flourished around 225 BC or earlier.