The island of Brač was already inhabited in pre-historic times. Croatians arrived to the island before the 8th century. In the period between the 9th century and up to 1420, Bol was alternately ruled by Venice, the Croatian state under King Petar Krešimir IV, the Croatian-Hungarian state, the Byzantine Empire, the Republic of Dubrovnik, and also by pirates from Omiš. In 1420, Venice restored and maintained its power over the island until its fall in 1797, and this period was marked by centralisation and the successive abolishment of the autonomy of the local island commune. The period of Napoleonic wars at the end of the 18th and beginning of the 19th century was marked by turbulent interchanges of dominance between the Habsburg Monarchy (Austria), France, England and Russia. From 1814 until the end of World War I, Bol was under the rule of the Austro-Hungarian Empire. From 1918 until 1990, Croatia was part of the Kingdom of Yugoslavia, and then the Federal Republic of Yugoslavia, until Croatia became an independent country in 1991.