The year 1158 is assumed to be the foundation date, which is the earliest date the city is mentioned in a document. The document was signed in Augsburg. By that time the Guelph Henry the Lion, Duke of Saxony and Bavaria, had built a bridge over the river Isar next to a settlement of Benedictine monks—this was on the Old Salt Route and a toll bridge. In 1175, Munich was officially granted city status and received fortification. In 1180, with the trial of Henry the Lion, Otto I Wittelsbach became Duke of Bavaria and Munich was handed over to the Bishop of Freising. In 1240, Munich was transferred to Otto II Wittelsbach and in 1255, when the Duchy of Bavaria was split in two, Munich became the ducal residence of Upper Bavaria. Duke Louis IV was elected German king in 1314 and crowned as Holy Roman Emperor in 1328. He strengthened the city's position by granting it the salt monopoly, thus assuring it of additional income. In the late 15th century Munich underwent a revival of gothic arts—the Old Town Hall was enlarged, and Munich's largest gothic church, now a cathedral—the Frauenkirche—constructed in only twenty years, starting in 1468. When Bavaria was reunited in 1506, Munich became its capital. The arts and politics became increasingly influenced by the court. During the 16th century Munich was a center of the German counter reformation, and also of renaissance arts. Duke Wilhelm V commissioned the Jesuit Michaelskirche, which became a center for the counter-reformation, and also built the Hofbräuhaus for brewing brown beer in 1589. The Catholic League was founded in Munich in 1609. In 1623 during the Thirty Years' War Munich became electoral residence when Maximilian I, Duke of Bavaria was invested with the electoral dignity but in 1632 the city was occupied by Gustav II Adolph of Sweden. When the bubonic plague broke out in 1634 and 1635 about one third of the population died. Under the regency of the Bavarian electors Munich was an important center of baroque life but also had to suffer under Habsburg occupations in 1704 and 1742. In 1806, the city became the capital of the new Kingdom of Bavaria, with the state's parliament (the Landtag) and the new archdiocese of Munich and Freising being located in the city. Twenty years later Landshut University was moved to Munich. Many of the city's finest buildings belong to this period and were built under the first three Bavarian kings. Later Prince Regent Luitpold's years as regent were marked by tremendous artistic and cultural activity in Munich. Following the outbreak of World War I in 1914, life in Munich became very difficult, as the Allied blockade of Germany led to food and fuel shortages. During French air raids in 1916, three bombs fell on Munich. After World War I, the city was at the center of much political unrest. In November 1918 on the eve of revolution, Ludwig III and his family fled the city. After the murder of the first republican premier of Bavaria Kurt Eisner in February 1919 by Anton Graf von Arco auf Valley, the Bavarian Soviet Republic was proclaimed. When Communists had taken power, Lenin, who had lived in Munich some years before, sent a congratulatory telegram, but the Soviet Republic was put down on May 3, 1919 by the Freikorps. While the republican government had been restored, Munich subsequently became a hotbed of extremist politics, among which Adolf Hitler and the National Socialism rose to prominence. In 1923 Hitler and his supporters, who were then concentrated in Munich, staged the Beer Hall Putsch, an attempt to overthrow the Weimar Republic and seize power. The revolt failed, resulting in Hitler's arrest and the temporary crippling of the Nazi Party. The city once again became a Nazi stronghold when the National Socialists took power in Germany in 1933. The National Socialist Workers Party created the first concentration camp at Dachau, 10 miles (16 km) north-west of the city. Because of its importance to the rise of National Socialism, Munich was referred to as the Hauptstadt der Bewegung ("Capital of the Movement"). The NSDAP headquarters was in Munich and many Führerbauten ("Führer-buildings") were built around the Königsplatz, some of which have survived to this day. The city is known as the site of the culmination of the policy of appeasement employed by Britain and France leading up to World War II. It was in Munich that British Prime Minister Neville Chamberlain assented to the annexation of Czechoslovakia's Sudetenland region into Greater Germany in the hopes of sating the desires of Hitler's Third Reich. Munich was the base of the White Rose, a student resistance movement from June 1942 to February 1943. The core members were arrested and executed following a distribution of leaflets in Munich University by Hans and Sophie Scholl. The city was heavily damaged by allied bombing during World War II—the city was hit by 71 air raids over a period of six years.
After US occupation in 1945, Munich was completely rebuilt following a meticulous and—by comparison to other war-ravaged West German cities—rather conservative plan which preserved its pre-war street grid. In 1957 Munich's population passed the 1 million mark.