In 1278, the Duchy came to the Habsburg family. Rudolf IV started the university in 1365 and while he was duke the nave of the Gothic St. Stephan's Cathedral was built. Quarrels within the Hapsburg family caused an economic decline in Vienna. In 1438, Vienna became the residence of the Holy Roman Emperor.