People have lived around this stretch of the Niger since the Palaeolithic. The floodplain fed them, and early chiefdoms grew rich on trade routes across the Sahara, moving salt, gold, ivory and kola. The Empire of Ghana was the first kingdom to control the region, by the 11th century, and the Mali Empire later took over.
The Niare family set up Bamako itself around 1650. Clerics and merchants of the Touré and Drave families also shaped the early town, which answered to the Segou Empire. When the Scottish explorer Mungo Park came through in 1806 he counted about 6,000 people, much like other trading towns of the region.
The French wanted the spot because of its place on the Niger. Their commander Gustave Borgnis-Desbordes rushed a force to build a fort on 1 February 1883, in the middle of a struggle with Samory Touré's Wassoulou Empire. Samory's brother Kebe Brema fought two battles against the French in April and lost in the end. In 1904 a railway reached Bamako from Kayes, and in 1908 the city became capital of French Sudan.
A line to Dakar opened in 1923, tying the city to the Atlantic. Independence came in 1960, when Bamako had about 160,000 people by one count. Mali turned socialist and took Soviet money, then the economy sank. Moussa Traoré seized power in a coup and ruled for 23 years through droughts and food shortages.
In the late 1980s people in Bamako pushed for multiparty democracy. Students and even children joined the marches. On 22 March 1991 the regime violently put down a big protest in the centre, and estimates of the dead reach 300. Four days later a military coup removed Traoré. The Pont des Martyrs, which opened in 1960, was renamed for those who died.
The population kept climbing: from around 100,000 in 1960 to 4,227,569 at the 2022 census, fed by people leaving the countryside for work. Traffic, sanitation and safe water have not kept pace. Saudi, Libyan and Chinese money paid for the King Fahd Bridge, the Cité Administrative and a third bridge.
The 21st century has brought violence. On 20 November 2015 gunmen held 170 people in the Radisson Blu hotel in a seven-hour siege that killed 21 people and the two gunmen. In September 2024 an al-Qaeda affiliate, JNIM, attacked a military training school and the airport, and at least 77 people died. The military junta in power since 2021 has downplayed that attack, and a fuel blockade has hit the city too. Check your government's travel advice before you book.