Napoleon III faced the daunting task of establishing legitimacy and creating a liberal, constitutional monarchy in a bitterly divided France and a Europe threatened by his name. Ruling longer than any 19th-century French monarch, Napoleon III's legacy is marred by France's defeat in the Franco-Prussian War.