The Banate of Bosnia (Banovina Bosna / Бановина Босна), or Bosnian Banate (Bosanska banovina / Босанска бановина), was a medieval state based in what is today Bosnia and Herzegovina. Although Hungarian kings viewed Bosnia as part of Hungarian Crown Lands, the Banate of Bosnia was a de facto independent state for most of its existence. It was founded in the mid-12th century and existed until 1377 with interruptions under the Šubić family between 1299 and 1324. In 1377, it was elevated to a kingdom. The greater part of its history was marked by a religiopolitical controversy revolving around the native Christian Bosnian Church condemned as heretical by the dominant Nicene Christian churches, namely the Roman Catholic and Eastern Orthodox, with the Catholic church being particularly antagonistic and persecuting its members through the Hungarians.
Bosnia (early medieval polity)
In 1136, Béla II of Hungary invaded upper Bosnia for the first time and created