At the same time, and partly as a consequence, the secessionist movement of the large German majority in Holstein and southern Schleswig was suppressed in the First Schleswig War (1848–51), when the Germans in both territories failed in their attempt to become a united, sovereign and independent state: At the time, the king of Denmark was also duke of the duchies of Holstein and Schleswig.