 For centuries, the Berber tribes of the Rif had fought off any attempt of outsiders to impose control on them.Though nominally Muslim, the tribes of the Rif had continued many pagan animist practices, such as worshipping water spirits and forest spirits.Attempts by the Moroccan sultans to impose orthodox Islam on the Rif had been successfully resisted by the tribesmen.