Question: when was the old city of jerusalem built

title: Old City (Jerusalem)
text: In 1099 , Jerusalem was captured by the Western Christian army of the First Crusade and it remained in their hands until recaptured by the Arab Muslims , led by Saladin , on October 2 , 1187 . He summoned the Jews and permitted them to resettle in the city . In 1219 , the walls of the city were razed by Mu'azzim Sultan of Damascus ; in 1229 , by treaty with Egypt , Jerusalem came into the hands of Frederick II of Germany . In 1239 he began to rebuild the walls , but they were demolished again by Da'ud , the emir of Kerak . In 1243 , Jerusalem came again under the control of the Christians , and the walls were repaired . The Kharezmian Tatars took the city in 1244 and Sultan Malik al - Muazzam razed the walls , rendering it again defenseless and dealing a heavy blow to the city 's status . Suleiman