Hafiz Mustafa Agha


Hafiz Mustafa Agha, known in historiography as Hafiz-Pasha, was an Ottoman commander of the Sanjak of Niš, notable for participating in the suppression of rebel Janissaries in the Sanjak of Smederevo in the 1790s and appointed the titular Vizier of the Belgrade Pashalik in 1805 in order to suppress the Serbian rebels in the First Serbian Uprising.
Mustafa was born into a very poor Muslim family in Niš. As a young man he participated in the Austro-Turkish War (1788–1791), distinguishing himself through courage and appropriate military demeanor. He quickly advanced during the revolt of the Janissaries in the Sanjak of Smederevo in the 1790s, during which he served in the Ottoman unit under the command of Şaşit Pasha of Leskovac. He was appointed mutesellim in Niš and was also promoted to kapıcıbaşı of the Porte, a lower-ranking honorific given to frontier officers. In August 1801, Vali of Rumelia Hakki Pasha suggested that Hadji Mustafa Pasha be transferred to Niš while in his place Hafiz be put as temporary governor until the coming of an able Vali, which shows that Hafiz had great trust, but this was not done.
In March 1804, the Ottoman sultan, on the suggestion of Grand Vizier Yusuf Ziya Pasha, ordered that Bekir Pasha's mission in the Belgrade Pashalik also include Hafiz, whose mission was to cut communications between the Belgrade janissaries and Vidin and to also pacify the Serbs. In 1804, the Serb rebels had great successes and Bekir Pasha failed the mission to pacify the Belgrade Pashalik. According to some accounts, Hafiz protected the Timok–Morava roads and successfully prevented any help to the Dahije from the Vidin Pashalik. After Bekir Pasha asked to be removed from the mission to pacify the Belgrade Pashalik in April 1805, the Porte turned to Hafiz. According to descriptions, he was very energetic and ambitious, and loyal to the Ottoman Empire. He enjoyed great reputation among both Turks and Serbs, as he did not behave as a bully and ayan. If Hafiz managed to return the Belgrade Pashalik to Ottoman rule, maintain order, and pacify the Serbs, he was promised the title of Vizier of Belgrade by the sultan. On 17 April 1805 Hafiz answered the Porte about his military plans and that he accepted the mission and title. On 24 April 1805 he was titled the muhafiz of Belgrade with the rank of Vizier. He then mustered the army of the Sanjak of Niš.
Hafiz set out with a large army from Niš that clashed with vojvoda Milenko Stojković near Paraćin. The reinforcements of Serbian supreme commander Karađorđe attacked the next day and the Serbs decisively defeated Hafiz Pasha, with great Ottoman casualties, at the Battle of Ivankovac. He was wounded in the leg and retreated to Niš where he died shortly afterwards.