The city remained in the hands of Christian troops until 1102, when the Almoravids retook the city and restored the Muslim religion