Mahmud's rule
Mahmud I was recognized as sultan by the mutineers as well as by court officials but for some weeks after his accession the empire was in the hands of the insurgents. Halil rode with the new sultan to the Mosque of Eyüb where the ceremony of girding Mahmud I with the Sword of Osman was performed; many of the chief officers were deposed and successors to them appointed at the dictation of the bold rebel who had served in the ranks of the Janissaries and who appeared before the sultan bare-legged and in his old uniform of a common soldier. A Greek butcher, named Yanaki, had formerly given credit to Halil and had lent him money during the three days of the insurrection. Halil showed his gratitude by compelling the Divan to make Yanaki Hospodar of Moldavia. However, Yanaki never took charge of this office.
The Khan of the Crimea assisted the Grand Vizier, the Mufti and the Aga of the Janissaries in putting down the rebellion. On 24 November 1731, Halil was strangled by the sultan's order and in his presence, after a Divan in which Halil had dictated that war be declared against Russia. His Greek friend, Yanaki, and 7,000 of those who had supported him were also put to death. The jealousy which the officers of the Janissaries felt towards Halil, and their readiness to aid in his destruction, facilitated the exertions of Mahmud I's supporters in putting an end to the rebellion after it had lasted over a year.
The Austrian ambassador, who came to Istanbul in August 1740, was given a dinner in Davudpaşa. Çavuşbaşı took the ambassador and took him to his mansion prepared in Beyoğlu. On the day of the Ulufe Court, he presented his name to the Sultan. Various demonstrations were held in places where welcome and farewell ceremonies were held for the ambassador from Yeniköy Pier.
The rest of Mahmud I's reign was dominated by wars in Persia, with the collapsing Safavid dynasty and the ascendance of Nader Shah. Mahmud also faced a notable war in Europe—the Austro-Russian-Turkish War (1735–1739).
After the condemnation of Freemasonry by Pope Clement XII in 1738, he followed suit outlawing the organization and since that time Freemasonry has been equated with atheism in the Ottoman Empire and the broader Islamic world.
Mahmud I entrusted government to his viziers and spent much of his time composing poetry.