The Castilian nobleman Rodrigo Díaz de Vivar, known as "El Cid", in command of a combined Christian and Moorish army, besieged the city beginning in 1092. After the siege ended in May 1094, he ruled the city and its surrounding territory as his own fiefdom for five years from 15 June 1094 to July 1099. There is an account of his period, "Eloquent Evidence of the Great Calamity", written from a Muslim perspective by a native of the city, Ibn Alqama.