In 1559, Emperor Ferdinand I established the agency of an imperial chancellery ("Reichshofkanzlei") at the Vienna Hofburg Palace, headed by a vice-chancellor under the nominal authority of the Mainz archbishop. Upon the 1620 Battle of White Mountain, Emperor Ferdinand II created the office of an Austrian court chancellor in charge of the internal and foreign affairs of the Habsburg Monarchy. From 1753 onwards, the office of an Austrian state chancellor was held by Prince Kaunitz. The imperial chancellery lost its importance, and from the days of Maria Theresa and Joseph II, merely existed on paper. After the dissolution of the Holy Roman Empire, Prince Metternich served as state chancellor of the Austrian Empire (1821–1848), likewise Prince Hardenberg acted as Prussian chancellor (1810–1822). The German Confederation of 1815–1866 did not have a government or parliament, only the Bundestag as representative organ of the states.