Aleppo turns up in writing earlier than Damascus does. Tablets from Ebla, dated to the third millennium BC, mention it, and by about 1800 BC it was the capital of the Amorite kingdom of Yamhad. Its chief temple, to the storm god Hadad, crowned the citadel hill, and the Hittites later made the city a centre of that god's cult.
Seleucus Nicator founded a Greek settlement here between 301 and 286 BC and named it Beroea. Under Rome and then Byzantium it grew into the second largest city in Syria after Antioch. The Persians burned it in 540, and Arab armies took it in 637. The two mosques inside the citadel began as Byzantine churches that were converted in the 11th century.
The Middle Ages were hard on the city. Under the Hamdanid prince Sayf al-Dawla in the 10th century it was home to the poet al-Mutanabbi and the philosopher al-Farabi. An earthquake in 1138 is believed to have killed 230,000 people. Saladin took Aleppo in 1183, the Mongols massacred many of its Muslims in 1260 and took the city in 1271 and 1280. Tamerlane came in 1400 and ordered a tower of 20,000 skulls built outside the walls.
After Tamerlane, Christians who had fled could not return to their old quarter in the walled town. In 1420 they built a new one outside the walls, al-Jdeydeh, which means new district. Its brokers handled trade between foreign merchants and local ones, and its stone houses are what you walk through there today. The Ottomans took Aleppo in 1516, and by the middle of that century it had overtaken Damascus as the main market for goods coming from the east.
The 16th and 17th centuries were the peak. Venice opened a consulate in 1548, France in 1562, England in 1583 and the Netherlands in 1613, and the Levant Company of London ran its business from Aleppo until the late 18th century. Armenian merchants rose to prominence and developed Jdeydeh. The Suez Canal, opened in 1869, hit the economy badly. Trade is why the souq has so many khans: they housed the traders and their goods.
The 20th century took Aleppo's hinterland away. A treaty of 1921 led Turkey to impose high customs, which largely cut the city off from its hinterland in eastern Turkey and northwest Iraq. In 1939 it also lost its port, Iskenderun. Under Hafez al-Assad, in power from 1970, Damascus came to dominate the economy. In 1954 planners had wide new roads cut through the old city, and between 1954 and 1983 many old buildings were demolished, particularly in the northwest around Bab al-Faraj. The road plan was dropped in 1979 for one that kept the traditional style, and UNESCO listed the Old City in 1986.
Fighting reached Aleppo in July 2012 and the city was split for four years, with government forces in the west and rebels in the east. Much of the souq, and parts of the Great Umayyad Mosque, were destroyed or burned. Government forces retook the whole city in December 2016, and about 500,000 displaced people are reported to have returned. More than 30,000 people died in the city. In late November 2024 opposition fighters under Hayat Tahrir al-Sham took it. Expect rebuilt sites next to ruins.