Morocco later became a realm of the North African civilisation of ancient Carthage as part of its 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 present state of Mauritania) dates at least to 225 BC.