 The founding of the city is closely linked to the construction of the palace.Karlsruhe became the capital of Baden-Durlach, and, in 1771, of the united Baden until 1945.Built in 1822, the "Ständehaus" was the first parliament building in a German state.