Mustafa II was sultan of the Ottoman Empire from 1695 until his deposition in 1703. Born at Edirne Palace on June 5, 1664, he was the son of Sultan Mehmed IV and Gülnuş Sultan. He received religious instruction from Vani Mehmed Efendi and studied calligraphy with Hâfiz Osman. In 1675, he and his brother Ahmed underwent circumcision in celebrations that lasted 20 days.
During Mustafa’s reign, the Ottoman Empire remained at war with the Holy League. He personally led 3 campaigns against the Habsburgs, achieving victories at Lugos, Ulaş and Cenei, while Ottoman forces also recovered Chios. The defeat at Zenta in 1697, followed by the 1699 Treaty of Karlowitz, marked the loss of Hungary. Russia captured Azov in 1696. Mustafa later tried to strengthen the sultan’s authority by making cavalry timars hereditary, but the system was increasingly outdated.
Discontent culminated in the 1703 Edirne event, when mutinous troops helped depose Mustafa on August 22. Confined in the Kafes after his brother Ahmed III took power, he died on December 28, 1703, and was buried beside his grandmother Turhan Hatice Sultan at the New Mosque in Istanbul. Beyond ruling, Mustafa was interested in hunting, archery and literature, and wrote poetry under a pseudonym.