The second major battle of the uprising was the Battle of Mišar in 1806, in which the rebels defeated an Ottoman army from the Eyalet of Bosnia led by the Turkish Sipahi Suleiman-Pasa. At the same time the rebels, led by Petar Dobrnjac, defeated Osman Pazvantoğlu and another Ottoman army sent from the southeast at Deligrad. The Ottomans were consistently defeated despite their repeated efforts and the support of Ottoman commanders led by Ibrahim Bushati and Ali Pasha's two sons, Muktar Pasha and Veli Pasha. In December 1806 the rebels captured Belgrade thus taking control of the entire pashalik. The insurgents then sent Belgrade merchant Petar Ičko as their envoy to the Ottoman government in Constantinople. He managed to obtain for them a favourable treaty named after him the "Ičko's Peace". The Turks agreed to some measure of Serbian autonomy However the Serbian leaders rejected the treaty and possibly poisoned Ičko due to his dealings with the Ottomans.