People lived on this stretch of the Tigris long before Baghdad existed. Bricks stamped with the name of Nebuchadnezzar II line the west bank. In 762 the Abbasid caliph al-Mansur commissioned a new capital here, calling it the City of Peace.
The Round City was two kilometres across and took four years to build, with more than 100,000 workers. What lasted was the idea: markets were moved to al-Karkh, and within a generation the city was a centre of trade and learning.
In the 9th century the House of Wisdom held the largest collection of books in the world. Al-Khwarizmi, al-Kindi and Hunayn ibn Ishaq worked here, and the scholars were Arabs, Persians, Syriacs, Jews and Christians. Many of the Arabian Nights tales are set in the city.
Power slipped away as the capital moved for a time to Samarra and Buyids and Seljuks took control. Then on 10 February 1258 the Mongols under Hulegu took the city. They killed most of its people, including the caliph, and wrecked the canals that fed the fields. The Abbasid Caliphate ended there. This is why so little medieval Baghdad is left to see.
Timur sacked the city again in 1401, and Safavids and Ottomans fought over it into the 1630s. Under the Ottomans it was a provincial capital hit by plague and cholera. In the 19th century Baghdad grew into a leading centre of Jewish learning, with about 50,000 Jews by 1900. The Ottoman-era alleys of the old quarter date from this long stretch.
The British took the city in 1918, and it became the capital of a British-protected monarchy in 1921 and of an independent kingdom in 1932. The city swelled to roughly four times its 1900 size by 1950. In the 1950s the Jewish community, a quarter to a third of the city, was largely gone: after the Farhud pogrom of June 1941 and the departures of 1950 and 1951. The main synagogue stands abandoned.
The army overthrew the monarchy on 14 July 1958 and King Faisal II was killed; the Freedom Monument dates from the same years. In 1960 Baghdad hosted the conference that founded OPEC. Oil money in the 1970s paid for highways, sewers and pipelines. The 1980s war with Iran and years of sanctions then drained the city, and many Saddam-era monuments, such as the Swords of Qadisiyah, are reminders.
US-led forces captured Baghdad on 9 April 2003, and a statue of Saddam Hussein came down in Firdos Square. The museums were looted. Insurgency and civil war followed, and then a second war from 2013 to 2017 against the Islamic State. Attacks have fallen since 2017 and are now rare, and reconstruction projects are under way. In 2015 UNESCO named Baghdad a City of Literature.