Jerusalem is located in the Judean Hills on an ancient crossroads, and its origins can be traced back as far as 3000 BC under the Jebusites. In 2000 BC the city is mentioned in Egyptian cave writings, and in the first millennia BC, from the conquest of the land by Joshua, and the fall of the city to King David, was a foreign city within Israel; as David did not eliminate the city's native population but used it for the local administration. David's son built extravagant buildings within the city, among them the first Temple that made the city a religious centre.
With the division of the Kingdom of Israel, Jerusalem ceased to be the capital of all the tribes, and in the days of Tzidkiyahu fell to the Babylonians (586 BC) following a heavy siege. For nearly 50 years the city stood relatively untouched until Shivat Zion (the Return to Zion) again returned to it the status of the centre of the nation. After the conquest of Alexander the Great (332 BC) it became also the capital of the Jewish Hellenistic world; even as the tensions grew between those inhabitants of the city who wanted to assimilate the Greek pantheon and those who remained within Judaism. One of the central motives behind the Hasmonean Rebellion was to cleanse Jerusalem and the Temple of foreign influences. Dependence on a foreign power was finally ended in 129 BC, and Jerusalem became the capital of an independent kingdom of Judea.
Herod the First expanded the boundaries of the city, mostly with palaces and fortresses, thanks to which Jerusalem was able to hold out four years against the forces of Rome, until it finally surrendered with the failure of the Great Rebellion in 70 BC. The Temple was sacked and most buildings within the city were razed at the orders of Titus Flavius. The conquerors changed the name of the city to Ilia Capitolina, and the task of returning it to Jewish rule fueled the Bar-Kochba Rebellion.
With the adoption of Christianity as the official religion of the Roman Empire in the days of Constantine the Great, Jerusalem became a sacred city within the Christian world (324 AD) and Christian pilgrims began to visit the sites holy to them. Many churches were set up, among the first being the Church of the Sepulcher (335 AD). The Romans commanded that the Temple should never be rebuilt in order to humiliate the Jewish inhabitants.
In 614 AD, the Persians conquered Jerusalem with Jewish aid, but they could not maintain rule for more than 15 years and the city returned to Byzantine rule until the Moslems returned and conquered it in 638 AD. Khalif Omar the 2nd commanded that the site of the Temple should be cleared, and built the first mosque upon the site. From a Christian city Jerusalem became a mostly Moslem city, and it's status was degraded when Ramallah was declared to be the centre of Moslem administration in the region in the beginning of the 8th century AD. The city suffered the wrath of marauding tribes such as the Beduin, and from natural disasters and earthquakes (1016, 1033 AD). This was also the period where the city was divided into four quarters, the Christians in the north-west, the Jews in the north-east and near the Temple.
In the Summer of 1099, the Crusaders captured Jerusalem and massacred most of its inhabitants, especially the Jews. The city became the capital of the Crusader Kingdom of Jerusalem, and most of it's income came from Christian pilgrims from Europe. Moslems came to the city on business only, and in time Jews repopulated the city as artisans. The city capitulated to Salah Al-Din in 1187 and returned to being mostly Moslem. Between 1299 and 1344 the Crusaders gained hold of the city based on terms worked out by both sides – the Moslems got the area of the Temple, and the Crusaders got all the rest of the city.
The city was pillaged and ransacked by foreign armies (1244) until the invasion of the Mamelukes in 1256, and after them the Ottomans in 1516. The Ottomans controlled Jerusalem for 400 years, during which time its population ranged between 7000 and 10,000.
Between 1537 and 1541 Sultan Suleiman the First (the "Magnificent") reconstructed the walls of Jerusalem and restored the Tower of David. The Jewish population of the city, restored since the Moslem conquest, split up into three separate parts, the native Mistaarvim, the Westerners returned from north Africa, and the returning European Ashkenazi. In the 15th century an organization was already active in Jerusalem that sent members abroad to collect funds for the city from Jews in the diaspora.
In 1621 a large group of Ashkenazi arrived, but suffered greatly from the heavy tax burden and the corrupt rulers of the city. Another group of Jews from Eastern Europe arrived in 1700, and also immigrants from Italy and north Africa, but all suffered greatly from the persecution of the city administrators. The British Consulate set up in 1838 took up the protection of the Jews, in part because the other major powers had already picked groups to support within the local population.
In the 1860s Jerusalem spread beyond the walls, first in the North West of the city on territory purchased by the Russian government (Migrash Harussim). Later the first Jewish neighborhoods outside the walls sprung up, in the West Mishkenot Sheananim, Yemin Moshe, and other neighborhoods along the main arteries to Bethlehem and the Shfela. At this point the Jews constituted a significant majority in the city, 10,600 as opposed to 5,300 Christians and 5000 Moslems (by the census of 1873).
Towards the end of the century the city began to prosper economically, with the opening of banks, restaurants, and hotels. In 1898 the German Kaiser visited the city, and in his honor the wall was broken in near Jaffa Gate to enable him to drive into the Old City with his car. At this point the new city had about 60 Jewish neighborhoods, and its population stood at 45,000, of them more than 28,000 Jews.
In December 1917, following the Ottoman support for the Germans in the First World War, the British marched in the Jaffa Gate, and by the summer of 1920 the city was a seat of British civil rule. The municipality of the city was denied to the Jews, despite the Jewish majority, for the entire period of the Mandate.
Jerusalem was the centre of Jewish national institutions, and in 1925 celebrated the opening of the Hebrew University on Mount Scopus. New neighborhoods appeared all around the city, especially in Jewish neighborhoods in the South, North, and West. The massacres of the Jews by the Arabs in 1921, and 1936-39 did not stop the Jewish expansion and on the eve of the Second World War the population numbered 81,000 Jews, half of whom were Ashkenazi. Despite this, the Moslem massacres had succeeded in wiping out the Jewish population of the Old City, and within there remained only 2000 Jews.
Towards the end of the war the underground intensified activities against the local administration, and the British boarded themselves up in fortified positions in the center of the new city and other places. When an Arab mob set fire to the commercial centre West of the city walls on the 30th of November, 1947, the war of independence began in Jerusalem. Each side tried to take control of areas vacated by the evacuating British, and in this desperate battle the Jews had the upper hand except in the Old City, which fell to the Arabs on the 25rh of May, 1948, and Mount Scopus, which remained a Jewish area hemmed in on all sides by the Arabs.
The Arab siege of Jerusalem following the departure of the British lasted more than two months, and the number of killed and wounded on both sides reached thousands. For 19 years Jerusalem was split into two, an Arab city in the East and a Jewish city everywhere else. One crossing connected them, The Mandelbaum Crossing, enabling UN personnel to change guard at the isolated Jewish Mount Scopus. The Eastern part of the city was vacated of its institutions after the Jordanian takeover, and had to rely on tourism as a source of income, while the Jewish side strove to create alternative cultural and educational centres to replace those left behind on the Arab side, and government institutions to serve its renewed role as the seat of government of the state of Israel. The city developed rapidly and new neighborhoods sprung up to cater to the expanding industrial and commercial presence. A census carried out in 1961 put the Israeli city's population at 166,000 people, of them only 1,500 non-Jews.
Following the Six Day War, on the 28th of June, 1967 the city was reunified, and the population of the Eastern part of the city, despite not being citizens of Israel, were eligible to vote in municipal elections. The boundaries of the city were expanded from the entrance to Bethlehem in the South, to Ramallah in the North. In the added territory Jewish neighborhoods with large populations were set up to ensure that this time there would be an enduring Jewish presence and the city would never be taken by foreigners again.
In the destroyed Jewish Quarter of Jerusalem new luxurious apartment blocks were constructed and the ancient synagogues were restored. Many large public parks were set up in the city, among them Gan Hapaamon, Gan Sacher, Gan Haatzmaut, with large areas of forest planted by the Jewish National Fund, which gave the city a new natural look. On the 30th of July, 1980 the Knesset approved the Jerusalem Law that states that a unified Jerusalem is the capital of Israel.
The first mayor of Jerusalem following the War of Independence was Daniel Oster (1948-1951), followed by S. Z. Shargai (1951), Joseph Karib (1952), Gershon Agron (1955), Mordechai Ish Shalem, Teddy Kolek (1965 -), and finally Ehud Olmert.
Most of this information taken from the Inziklopedia Hayisreelit Haklalit, 1987, Keter Publishing.