Kazan is the Tatar word for cauldron, and the city has a legend to match. A servant of the founder, Khan Altyn Bek, supposedly dropped a cauldron into the river while fetching water, and the river became the Kazanka. A plainer guess is the basin of land the city sits in. Digging in the Kremlin turned up a Czech coin and the remains of a wooden fence, and a commission later settled on 1005 as the official founding year.
The Kazan you can walk through began in 1438. Ulugh Muhammad, a Golden Horde khan who had lost his throne, seized the older Bulgar fortress and moved it to the present site as capital of the Khanate of Kazan. The Taş Ayaq bazaar grew into the region's main market, especially for furniture. The city traded with Moscow, Crimea and Turkey.
Ivan the Terrible took Kazan after a siege in 1552. Most Tatar residents were forcibly baptised or driven out, and the mosques and palaces were wrecked. Tatars who served the Russians were settled outside the wall in a new quarter, and merchants and craftsmen joined them later. Fire kept finishing what the siege began. After one blaze, in 1579, the icon of Our Lady of Kazan turned up in the city.
Wood was the problem. Big fires struck nine times between 1595 and 1842, and low ground flooded each spring until dams were built. In 1774 Pugachev's rebellion destroyed much of what was left. Under Catherine the Great the city was rebuilt in stone on a grid, and she allowed mosques again. The first, Marjani Mosque, still stands.
The 19th century made Kazan a university town. Alexander I founded the university and a printing press, the Qur'an was first printed here in 1801, and the city became a centre of Oriental Studies. After the 1905 revolution Tatars could rebuild Kazan as their cultural capital, with the first Tatar theatre and newspaper. In 1920 Moscow made it the seat of a Tatar autonomous Soviet republic. During the Second World War factories moved here from the west and turned out tanks and planes, and the population passed one million in 1979.
Soviet planners cleared most of the old wooden housing in the centre, which other Russian cities mostly kept. Nearly 100,000 people were moved out to suburbs such as Azino.
Since 2000 the city has been rebuilt on a large scale. The Kremlin and historic centre were restored, though many old districts were demolished outright. The 2005 millennium brought the Kul Sharif Mosque, the Millennium Bridge and the metro. Further work followed for the 2013 Universiade, and Kazan was a host city at the 2018 World Cup.