When the young Louis XVII, Louis XVI's son, died in prison in June 1795, Louis XVIII succeeded his nephew as titular King. During the French Revolution and Napoleonic era, Louis XVIII lived in exile in Prussia, the United Kingdom and Russia. When the Sixth Coalition finally defeated Napoleon in 1814, Louis was placed in what he, and the French royalists, considered his rightful position. Napoleon escaped from his exile in Elba, however, and restored his French Empire. Louis XVIII fled and a Seventh Coalition declared war on the French Empire, defeated Napoleon, and restored Louis XVIII to the French throne.