[1] The term Middle Ages (in other words: the medieval period) in regard to the history of Jerusalem, is defined by archaeologists such as S. Weksler-Bdolah as the time span consisting of the 12th and 13th centuries.
[2] Jerusalem reached a peak in size and population at the end of the Second Temple period: The city covered two square kilometers (0.8 sq mi.)
[6] In 800, Charlemagne enlarged Probus' hospital and added a library to it, but it was destroyed in 1005 by Al-Hakim bi-Amr Allah along with three thousand other buildings in Jerusalem.
[citation needed] From the days of Constantine until the Arab conquest in 637/38, despite intensive lobbying by Judeo-Byzantines, Jews were forbidden to enter the city.
Jerusalem under Muslim rule, however, did not achieve the political or cultural status enjoyed by the capitals Damascus, Baghdad, Cairo etc.
Europeans marched to recover the Holy Land, and on July 15, 1099, Christian soldiers were victorious in the one-month Siege of Jerusalem.
Both grew out of the need to protect and care for the great influx of pilgrims traveling to Jerusalem, especially since Bedouin enslavement raids and terror attacks upon the roads by the remaining Muslim population continued.
King Baldwin II of Jerusalem allowed the forming order of the Templars to set up a headquarters in the captured Al-Aqsa Mosque.
The old hospice, rebuilt in 1023 on the site of the monastery of Saint John the Baptist, was expanded into an infirmary under Hospitaller grand master Raymond du Puy de Provence near the Church of the Holy Sepulchre.
As part of this same campaign the armies of Saladin conquered, expelled, enslaved, or killed the remaining Christian communities of Galilee, Samaria, Judea, as well as the coastal towns of Ashkelon, Jaffa, Caesarea, and Acre.
Following another Crusade by the Holy Roman Emperor Frederick II in 1227, the city was surrendered by Saladin's descendant al-Kamil, in accordance with a diplomatic treaty in 1228.
[16] This attack triggered the Europeans to respond with the Seventh Crusade, although the new forces of King Louis IX of France never even achieved success in Egypt, let alone advancing as far as Palestine.
After having troubles with the Khwarezmians, Sultan as-Salih began ordering armed expeditions to raid Christian communities and capture men, women and children.
There were also a large number of rumors and urban legends in Europe, claiming that the Mongols had captured Jerusalem and were going to return it to the Crusaders.
Pope Nicholas IV negotiated an agreement with the Mamluk sultan to allow Latin clergy to serve in the Church of the Holy Sepulchre.
With the city little more than a backwater, they had no formal quarters, and simply lived in a pilgrim hostel, until in 1300 King Robert of Sicily gave a large gift of money to the Sultan.
Robert asked that the Franciscans be allowed to have the Sion Church, the Mary Chapel in the Holy Sepulchre, and the Nativity Cave, and the Sultan gave his permission.
[20] Mamluk sultans made a point of visiting the city, endowing new buildings, encouraging Muslim settlement, and expanding mosques.
During the Ottomans this presence increased as Greeks under Turkish Sultan patronage re-established, restored, or reconstructed Orthodox Churches, hospitals, and communities.