A rising of the native magnates in 1322 resulted in the election of the Bogomil, Stephen Kotromanic, last and greatest of the Bosnian bans.
Of Hungary, Kotromanic returned to his allegiance in 1344.
Stephen Tvrtko, the nephew and successor of Kotromanic,was a minor, and for thirteen years his mother, Helena, acted as regent.
Kotromanic and Tvrtko had known how to crush or conciliate their turbulent magnates, whose power reasserted itself under Dabisa (Stephen II., 1 3 91-1398), a brother of Tvrtko.
He left two daughters Maria and Jadwiga (the latter he destined for the throne of Hungary) under the guardianship of his widow, the daughter of the valiant ban of Bosnia, Stephen Kotromanic, whom he married in 1353, and who was in every way worthy of him.