Bosnian history from then until the early 14th century was marked by a power struggle between the Šubić and Kotromanić families. This conflict came to an end in 1322, when Stephen II Kotromanić became ''Ban''. By the time of his death in 1353, he was successful in annexing territories to the north and west, as well as Zahumlje and parts of Dalmatia. He was succeeded by his ambitious nephew Tvrtko who, following a prolonged struggle with nobility and inter-family strife, gained full control of the country in 1367. By the year 1377, Bosnia was elevated into a kingdom with the coronation of Tvrtko as the first Bosnian King in Mile near Visoko in the Bosnian heartland.