In 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 the Banate of Bosnia (under the rule of local ''bans''). The first Bosnian ban known by name was Ban Borić. The second was Ban Kulin, whose rule marked the start of a controversy involving the Bosnian Church – 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. During this time, the population was called ''Dobri Bošnjani'' ("Good Bosnians"). The names Serb and Croat, though occasionally appearing in peripheral areas, were not used in Bosnia proper.