When the Spanish ousted the Moors in 1462, they initially converted a central mosque into a church. After Queen Isabella I of Castile and King Ferdinand II of Aragon were married in 1469, they ordered the construction of the Cathedral of St. Mary the Crowned. During the Great Siege of Gibraltar, when the Spanish attempted to regain control from the British, the Catholic church was repeatedly assaulted. By the end of the war in 1783, the cathedral was in shambles. It was rebuilt in 1810. The clock tower was added a decade later. The façade was replaced in 1931.