A French marshal who had served under Napoleon was elected heir to the Swedish throne by Sweden's own parliament. Jean-Baptiste Bernadotte took the name Karl Johan, founded a dynasty that still reigns today, and within five years led Sweden against his former emperor at the Battle of Leipzig.