Rodrigo Díaz de Vivar, known as El Cid, conquers the city of Valencia from the Moors on June 15, 1094, after a siege which began in 1093. He ruled it for the remainder of his life, holding it against counterattacks from the Almoravid army.
While he ruled independently, his control over Valencia was technically under King Alfonso VI of León and Castile, who was his former overlord. After El Cid's death in 1099, his widow ruled for three years before Valencia was eventually retaken by the Almoravids in 1102.