Strasbourg been populated since the middle Paleolithic. Between 362 and 1262, Strasbourg was governed by the bishops of Strasbourg; their rule was reinforced in 873 and then more in 982. In 1262, the citizens violently rebelled against the bishop's rule (Battle of Hausbergen) and Strasbourg became a free imperial city. It became a French city in 1681, after the conquest of Alsace by the armies of Louis XIV. In 1871, after the Franco-Prussian War, the city became German again, until 1918 (end of World War I), when it reverted to France. After the defeat of France in 1940 (World War II),
History of Strasbourg its flourishing economy attracted many Germans. This could explain the difference between the rural vote and the one in Strasbourg. After the war, many Germans left Strasbourg and returned to Germany; some of them were denounced by the locals or expelled by the newly appointed authorities. The Saverne Affair remains vivid in the memory of many Alsatians. In 1920, Strasbourg became the seat of the Central Commission for Navigation on the Rhine, previously located in Mannheim, one of the oldest European institutions. It moved into the former Imperial Palace. When the Maginot Line was built, the "Sous-secteur fortifié de Strasbourg"