 In 800, Emperor Charlemagne enlarged Probus' hospital and added a library to it.About 200 years later, in 1005, Caliph Al-Hakim bi-Amr Allah destroyed the hospital and three thousand other buildings in Jerusalem.In 1023, merchants from Amalfi and Salerno in Italy were given permission by the Caliph Ali az-Zahir of Egypt to rebuild the hospital in Jerusalem.