According to the historical writings of Al-Idrisi, a first bridge over the Tensift River was built by the Almoravid emir Ali Ibn Yusuf (ruled 1106–1143) with the help of architects from Spain (or al-Andalus). The bridge was strategically important as it allow the river to be crossed during its yearly floods. However, this first bridge was destroyed by floods a few years after completion.[3][4]