 Doboj fortress gradually lost its military significance in the late 18th century as the Turkish borders shifted dramatically in the Austrian/Turkish Wars, and later Napoleonic wars on Balkans and elsewhere.In 1878, Austro-Hungarian army captured the fortress after a very heavy and prolonged battle with a local population, mostly Bosnian muslims (Bosniaks today).A-H army had losses of nearly 1,000 soldiers killed in the battle around Doboj in the late summer of 1878, on its way to Sarajevo, and as it tried to establish hold in Northern Bosnia.