Charles XIV John was the king of Sweden from 1818 to 1844, and the first king of Sweden of the Bernadotte dynasty.