The Islamic Ottoman Empire era of rule in the Bosnia and Herzegovina region lasted from 1463/1482 to 1878.
The Ottoman conquest of Bosnia and Herzegovina started in 1384, and subsequently the Ottoman invasion expanded into the so-called Bosansko Krajište. The Kingdom of Bosnia finally fell in 1463. Herzegovina fell to the Turks in 1482. It took another century for the western parts of today's Bosnia to succumb to Ottoman attacks.
Bosnia continued legally under the royal House of Berislavić, and fell finally in 1527 with the fall of its capital Jajce. The first occupation administration was established that same year.
The Turks had conquered Slavonia and most of Hungary by 1541. In the next century, most of the Bosnian province wasn't a borderland and developed in relative peace. It was administered by the Ottoman Bosnia Eyalet and Herzegovina Eyalet.
However, when the Empire lost the war of 1683-1697 with Austria, and ceded Slavonia and Hungary to Austria at the Treaty of Karlowitz, Bosnia's northern and western borders became the frontier between the Austrian and Ottoman empires.
In 1716, Austria occupied northern Bosnia and northern Serbia, but this lasted only until 1739 when they were ceded to the Ottoman Empire at the Treaty of Belgrade. The borders set then remained in place for another century and a half, though the border wars continued.
The wars between the Ottomans and Austria and Venice impoverished Bosnia, and encouraged further migration and resettlement; Muslim refugees from Hungary and Slavonia resettled in Bosnia, assimilating into the native Bosniak population, whilst many Eastern Orthodox Christians, mostly from Kosovo but also including those from Serbia and Bosnia, resettled across the Bosnian border in Slavonia and the Military Frontier at the invitation of the Austrian Emperor.