Instead, the government proceeded to have a new crown prince elected (which was the proper constitutional action, if no male heir was left in the dynasty), and the Riksdag elected first August, Prince of Augustenborg, and then, after August's death, the Prince of Ponte Corvo (Marshal Jean-Baptiste Bernadotte, who acceded as Charles XIV John in 1818). The two lines united later, when Charles XIV John's great-grandson Crown Prince Gustaf (who acceded as Gustaf V in 1907) married Gustav IV Adolf's great-granddaughter Victoria of Baden, who became Crown Princess of Sweden. Thus, from Gustav VI Adolf onwards, the kings of Sweden are direct descendants of both Gustav IV Adolf and his son's replacement as crown prince, Charles XIV John.