After the liberation of Serbia marked by the first "Hatt-i humayun" in 1830, prince Miloš's priority became to settle the Drina Valley with Serb population.
This decision was particularly opposed by the Turks in the villages by the Drina and around the town of Soko.