Ferdinand promoted the election of his brother-in-law Maximilian I, duke of Bavaria as emperor; however, Maximilian refused to accept the throne. Instead, Rudolf's next surviving brother, Matthias, who had already taken power in Bohemia and Hungary, was elected. He was crowned on 26 June in Frankfurt.