1. Morocco was first inhabited by Berbers, a tribe that still lives in Morocco to this day. In the first century AD, Morocco became part of the Roman Empire.
2. After many invasians by barbarian tribes, in 685 AD Islam was brought to the country by arabs.
3. In 788 AD, Morocco became an independant kingdom, but because of the dissolution in the tenth century, a period of political anarchy went by.
4. By the eleventh century, Morocco was finally united by a Berber-Muslim dynasty, the Almoravids. They established a kingdom that went from Spain to Senegal, and though the country was united, the unity was never complete because conflict kept occuring between the Arabs and Berbers.