UNDER HUNGARIAN SUPREMACY 201 summoned, and Ostoja was deposed. Stephen Tvrtko II., son of Stephen Tvrtko I., was elected king, and Ostoja retired to Bobovac, now occupied by a Hungarian garrison. The new king owed his position to Hrvoje and Sandalj, who were the real masters of the country, and Ragusa applied to them to obtain a lasting peace with Bosnia. “ For what you desire,” wrote the Rector to Sandalj, “that also the lord King Tvrtko and the Duke (Hrvoje) and all Bosnia desire too, for God has granted you the favour that this should be so.”1 Eventually Tvrtko gave them back all the territory that had been theirs and some more lands besides. The Republic made him and his brothers, as well as Sandalj, citizens of Ragusa, and gave them palaces in the town. The loyalty of the Ragusans to Hungary was sorely tried this same year, for Sigismund prepared to make war on Tvrtko as a usurper and reinstate Ostoja as the rightful king. They would not side openly with Tvrtko against this suzerain, but they did not wish to lose the valuable and hardly won favours of Bosnia; they therefore placed their arsenals at the disposal of Tvrtko’s agents, who bought large supplies of arms for the war.2 Sigismund sent three armies into Bosnia—one under the Banus of Macva by way of Usora, a second under Paul, Banus of Croatia, up the Una valley towards Bihac, and a third to guard the Bosnian-Slavonian frontier under Peter of Per£n. Ladislas lent his fleet to Hrvoje to keep watch at Arbe and attack Sigismund’s forces if they should invade the littoral. But after a few ephemeral 1 Pucid, i. 56 and 61. 2 Racki, Pokret, Rad. iv., Jugosl. Akad., 85 ; Klaic, 297.