Medieval Bosnia
Modern knowledge of the political situation in the west Balkans into the region in the late 9th century is scarce. The Slavic tribes also brought their mythology and pagan system of beliefs, the Rodovjerje. In particular, Perun / Перун, the highest god of the pantheon and the god of thunder and lightning is also commonly found in Bosnian toponymy, for instance in the name of Mount Perun (Perunova Gora / Перунова Гора). Along with the Slavic settlers, the native Illyrians were Christianized. Bosnia and Herzegovina, because of its geographic position and terrain, was probably one of the last areas to go through this process, which presumably originated from the urban centers along the Dalmatian coast. Thus, Slavic Bosnian tribes remained pagans for a longer time, and finally converted to Christianity
The principalities of Serbia and Croatia split control of Bosnia and Herzegovina in the 9th and 10th centuries, but by the High Middle Ages political circumstance led to the area being contested between the Kingdom of Hungary and the Byzantine Empire. Following another shift of power between the two in the early 12th century, Bosnia found itself outside the control of both and emerged as an independent state under the rule of local bans.
The first Bosnian monarch was Ban Borić. The second was Ban Kulin whose rule marked the start of a controversy involving theBosnian Church, because he allowed an indigenous Bogomilism sect considered heretical by the Roman Catholic Church. In response to Hungarian attempts to use church politics regarding the issue as a way to reclaim sovereignty over Bosnia, Kulin held a council of local church leaders to renounce the heresy and embraced Catholicism in 1203. Despite this, Hungarian ambitions remained unchanged long after Kulin's death in 1204, waning only after an unsuccessful invasion in 1254.
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.
Following his death in 1391 however, Bosnia fell into a long period of decline. The Ottoman Empire had already started its conquest of Europe and posed a major threat to the Balkans throughout the first half of the 15th century. Finally, after decades of political and social instability, the Kingdom of Bosnia ceased to exist in 1463 after its conquest by the Ottoman empire.