In 788 , about a century after the Arab conquest of North Africa , successive Moorish dynasties began to rule in Morocco .