sentences:  The Banu Ganiya, taking advantage of the great loss suffered by Abu Yuqub Yusuf in the Siege of Santarém, attacked Ifriqiya, where the Almohad dominion had not been consolidated yet, in the same year.However, this attack was repelled and the Almohad authorities encouraged anti-Almoravid revolts in the Islands.The city was captured by the Almohads in 1203.