At the beginning of the Turkish offensive against Karađorđe's Serbia in 1806, the Turkish army under the Srebrenica commander Hadži-beg, with a strength of 7,000 men, crossed the Drina and from Sokograd, through the Valjevo nahiya, attacked Palež (Obrenovac) to merge with the main Bosniak army on the way to Belgrade.
At the end of July, the Turks stopped in Bratačić on 1 August while the suppressed insurgents of the Valjevo nahiya remained in the village of Osecina.
The Turks thought that larger reinforcements were coming to the Serbs, so they withdrew to Bratačić.
On the same day, the Serbs occupied the layout on the slopes around Bratačić and attacked the Turks, who retreated towards Rožanj at night and further towards the Drina.
Thus, the direction from Valjevo to Obrenovac was safe for Karađorđe for the upcoming Battle of Mišar.