At the same time, liberal German politicians came to power in Schleswig and Holstein; their goal was to unify the two duchies, to gain independence from the Danish king and to join the German Confederation as a sovereign state.