With the help of new Arab immigrants he gained independence from his Berber allies and extended Idrisid control to include most of what is today Morocco and parts of eastern Algeria.[1] As a result, he was of central importance to the early Islamization of Morocco, and arguably the first true "Moroccan" Islamic ruler.[2] He died in 828.[2]