Premier soulèvement serbe
In 1807, during the First Serbian Uprising, Serbian rebels attacked parts of the sanjak, which at the time was still under the control of Ottoman renegade Osman Pazvantoglu. The rebels' aim was to establish communication with the Russian troops in Wallachia under General Ignatiev. After the collapse of the First Serbian Uprising, part of the territory around Sokobanja and Svrljig recaptured from the rebels was annexed by the Sanjak of Vidin.