Lorraine got its name Lotharii regnum (Lothair’s kingdom) in the 9th century when it came to be ruled by the Frankish king Lothair II. The area became part of France in 1766 upon the death of Stanisław Leszczyński, the deposed king of Poland who ruled Lorraine as duke in the middle decades of the 18th century. In 1871 the Moselle département (along with Alsace) was annexed by Germany and remained part of the Second Reich until 1918, which is why much of Metz feels so imperial, while Nancy, which remained French, is so stylishly Gallic. The two cities are rivals to this day.