The Kingdom of Croatia (Modern Croatian: Kraljevina Hrvatska, Hrvatsko Kraljevstvo; Latin: Regnum Croatiæ), and since 1060 known as Kingdom of Croatia and Dalmatia (Latin: Regnum Croatiae et Dalmatiae), was a medieval kingdom in Southern Europe comprising most of what is today Croatia (without western Istria, some Dalmatian coastal cities, and the part of Dalmatia south of the Neretva River), as well as most of the modern-day Bosnia and Herzegovina. The Croatian Kingdom was ruled for part of its existence by ethnic dynasties, and the Kingdom existed as a sovereign state for nearly two centuries. Its existence was characterized by various conflicts and periods of peace or alliance with the Bulgarians, Byzantines, Hungarians, and competition with Venice for control over the eastern Adriatic coast. The goal of promoting the Croatian language in the religious service was initially introduced by the 10th century bishop Gregory of Nin, which resulted in a conflict with the Pope, later to be put down by him. In the second half of the 11th century Croatia managed to secure most coastal cities of Dalmatia with the collapse of Byzantine control over them. During this time the kingdom reached its peak under the rule of kings Peter Krešimir IV (1058–1074) and Demetrius Zvonimir (1075–1089).
The state was ruled mostly by the Trpimirović dynasty until 1091. At that point the realm experienced a succession crisis and after a decade of conflicts for the throne and the aftermath of the Battle of Gvozd Mountain, the crown passed to the Árpád dynasty with the coronation of King Coloman of Hungary as "King of Croatia and Dalmatia" in Biograd in 1102, uniting the two kingdoms under one crown.