Although the self-styled 'Emperor of All Spain', Alfonso VI of León and Castile, drove them from the city, he was not strong enough to hold it.
Who called himself the Emperor of All Spain?
Alfonso VI of León and Castile