By the early 1600s, approximately two thirds of the population of Bosnia were Muslim.[6] Bosnia and Herzegovina remained a province in the Ottoman Empire and gained autonomy after the Bosnian uprising in 1831.