Napoleon III was the nephew of Napoleon I. He was president of the Second Republic of France from 1850 to 1852 and the emperor of France from 1852 to 1870. He gave his country two decades of prosperity under an authoritarian government but finally led it to defeat in the Franco-German War.