On 11 November 1918, with his empire collapsing around him, the last Habsburg ruler, Charles I of Austria (who also reigned as Charles IV of Hungary) issued a proclamation recognizing Austria's right to determine the future of the state and renouncing any role in state affairs. Two days later, he issued a separate proclamation for Hungary. Even though he did not officially abdicate, this is considered the end of the Habsburg dynasty. In 1919, the new republican Austrian government subsequently passed a law banishing the Habsburgs from Austrian territory until they renounced all intentions of regaining the throne and accepted the status of private citizens. Charles made several attempts to regain the throne of Hungary, and in 1921 the Hungarian government passed a law that revoked Charles' rights and dethroned the Habsburgs. The Habsburgs did not formally abandon all hope of returning to power until Otto von Habsburg, the eldest son of Charles I, on 31 May 1961 renounced all claims to the throne.