 The edifice was then known as "Mezquita Bab-al-Mardum", deriving its name from the city gate Bab al-Mardum.It is located near the Puerta del Sol, in an area of the city once called Medina where wealthy Muslims used to live.Built in 999 in Toledo, this building is a rarity in that it is in much the same state as it was when it was originally built.