After the death of Rupert in 1410, his succession at first proved difficult, as both Wenceslaus' cousin Jobst of Moravia and Wenceslaus' brother Sigismund of Hungary were elected King of the Romans. Wenceslaus himself had never recognized his deposition and hence still claimed the kingship. Jobst died in 1411, and Wenceslaus agreed to give up the crown, so long as he could keep Bohemia. This settled the issue, and after 1411 Sigismund reigned as king and later also became Holy Roman Emperor.