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), Strasbourg came under German control again; since the end of 1944, it is again a French city. In 2016, Strasbourg was promoted from capital of Alsace to capital of Grand Est.