After the death of Stephen Dabiša his widow Jelena Gruba was elected as queen.
Due to a conflict with Hrvoje Vukčić, Bosnian nobility ousted Stephen Ostoja in 1404 and put on the throne Tvrtko II who reigned as Hrvoje's puppet king.