With the conclusion of peace, the Porte, in 1831, demanded that Mustafa hand over the districts of Dukakin, Debar, Elbasan, Ohrid and Trgovište to Grand Vizier Reşid Mehmed Pasha, and to implement certain reforms in Scutari. Mustafa resisted, and with the financial and moral support of Prince Miloš, he led an army against the Grand Vizier in mid-March 1831. He was joined by other pashas of northern Albania and Kosovo who objected the reforms. The rebels had some success, including occupying Sofia, but they were routed at Skopje by the Grand Vizier's regular troops in the beginning of May 1831. Mustafa retreated via Skoplje and Prizren and fortified himself in Scutari. After a six-month long siege, he surrendered on 10 November 1831. On Metternich's petition, he was pardoned and taken to Constantinople.