Originally the Crusader Cathedral of St. John (1113 - 1115 A.D.), the building was transformed into the city's Grand Mosque by the Mamlukes in 1291.