Solomon’s Temple (the First Temple) was built atop of what is known as the Temple Mount today, in the 10th century BC. Herod rebuilt the Temple but it was destroyed by the Romans, along with the rest of Jerusalem in 70 CE. When the Romans defeated a Jewish revolt in 135 AD, they banned the Jews from Jerusalem but Constantine I allowed them to visit the city once a month. Jews would visit Jerusalem on the ninth day of the month of Av, to lament the loss of the Temple at the wall.
In the 16th century, the Ottoman Empire conquered Jerusalem from the Mamluks of Egypt. They allowed the Jews from Spain to settle here, who were being prosecuted by the Catholic monarchs.