When Emperor Francis II was defeated by Napoleon at the Battle of Austerlitz and the empire was dissolved the electorate became an independent kingdom. The last elector of Saxony became King Frederick Augustus I. 