Poznań began as a fortified stronghold on what is now Ostrów Tumski, an island between the Warta and Cybina rivers. Mieszko I, the first recorded ruler of the West Polans, built one of his main strongholds here, and his baptism in 966 may have happened in the city. A cathedral followed, the first in Poland, and the missionary bishop Jordan sat here. The name probably comes from the verb poznać, to meet. Eight Piast rulers lie in that cathedral, which you can still visit.
That first Poznań did not last. Mieszko II died in 1034, a pagan revolt followed, and in 1038 a Bohemian army under Duke Bretislaus I sacked Poznań and Gniezno. When Poland reunited under Casimir I the capital went to Kraków. From 1138 the city belonged to the dukes of Greater Poland. Around 1249 Duke Przemysł I began a castle on a hill above the Warta, and in 1253 he gave Thomas of Gubin a charter for a new town, run under Magdeburg law, between castle and river. Thomas brought German settlers, and the walled town they built is today's Old Town.
Money followed the trade. Poznań lay on the way west for goods from Lithuania and Ruthenia, and by the late 16th century it was a major fur trading centre. Fire and floods kept setting it back: one fire on 2 May 1536 destroyed 175 buildings, among them the castle and the town hall. The Gothic town hall of the early 1300s was later rebuilt in Renaissance style, and that is the building you see on the square. A Jesuit college, founded in 1571, taught here for two centuries.
The 17th and 18th centuries were a long disaster. War, plague and the flood of 1736 cut the population of the conurbation from about 20,000 in 1600 to about 6,000 by 1730. Trade routes began to avoid Poland and went by sea through Gdańsk instead. The Jewish community, present in the city since the 13th century, was accused of collaborating with the invading Swedes and suffered pogroms from townspeople and the Crown Army alike. To rebuild the ruined suburbs the city brought in settlers from Bamberg and from the Netherlands, and the Bambers are still celebrated each 2 August.
Prussia took Poznań in 1793, lost it to Napoleon's Duchy of Warsaw in 1807 and got it back in 1815. It pulled down the old walls, laid out many of today's main streets west of the Old Town, and made the city a fortress, starting the citadel in 1828 and an outer ring of forts from 1876. Polish residents answered with institutions of their own: philanthropists paid for the Raczyński Library and the Bazar hotel, and the Polish Theatre opened in 1875. New Art Nouveau districts grew at Jeżyce, Łazarz and Wilda. The Imperial Castle came last, finished in 1910.
When Germany surrendered in 1918, a Greater Poland uprising broke out, and the Treaty of Versailles gave the city to the new Polish state. Most of the German residents left, and their count dropped from over 65,000 in 1910 to under 6,000 by 1926. The university opened in 1919 and the International Fair in 1924. The 1929 National Exhibition on the fair grounds drew about 4.5 million visitors.
From 1939 Poznań was the capital of the Reichsgau Wartheland under German occupation, and Poles were executed, expelled or put to forced labour. Fort VII became a concentration camp, and most of the roughly 2,000 Jews in the city were murdered. The Red Army took Poznań on 23 February 1945 after a battle that left much of it in ruins, above all the Old Town. The Citadel was the last point to fall.
In 1956 workers at the Cegielski locomotive factory began a protest that spread into strikes and street demonstrations against the communist government. After the march of 28 June was fired on, crowds attacked party and secret police headquarters, and 67 people died by the official count. A monument stands at Plac Mickiewicza. From the 1960s the city built concrete housing blocks, mainly in Rataje and Winogrady, and in 1968 the Warta was rerouted into two straight branches around Ostrów Tumski. Poznań hosted a UN climate conference in 2008 and matches of the 2012 European football championship.