Michael Apafi (Hungarian: Apafi Mihaly; 13 October 1676 – 1 February 1713) was the son of the Hungarian Michael I Apafi and Anna Bornemissza. Following his father, he was Prince of Transylvania from 10 June 1690 to 1699.
Michael had been associated with his father as ruler since 10 June 1681 and had been confirmed as heir by the Ottomans. At his father's death, the Turks however recognized Imre Thokoly, an anti-Habsburgian claimant of Hungary, as Prince of Transylvania. Thokoly briefly held Transylvania in 1690/91 but left the country after his generals had been defeated by Habsburg troops.
In the meantime, Michael's advisors had reached an agreement with Emperor Leopold, who granted in 1690 the country administrative, economic and cultural autonomy and freedom of religion. The Emperor recognized Michael as Prince and in 1691 the diet of Fogrash appointed a governing council until the Prince would come of age. The council was chaired by George Banffy as governor and also included Chancellor Miklos Bethlen, General Gergely Bethlen und Treasurer Janos Haller. To protect himself against new Turkish attacks and Habsburg attempts to restrict Transylvanian autonomy, Prince Michael - at the advice of his Chancellor - declared the King of England and the Elector of Brandenburg as his guardians.
England and the Netherlands pressured Emperor Leopold into ending the war against the Turks, proposing a peace that would also respect the independence of Transylvania, which should be ruled by Prince Michael under the joint protectorate of Habsburgs and Ottomans and the control of the international powers. Based on these proposals, negotiations continued until 1698.
However, the Habsburgs considered an independent Transylvania protected by English and Dutch guarantees a threat to their dynasty's future. In parallel to the peace negotiations, they strengthened their own position in the country. In 1692, Prince Michael was called to Vienna, ostensibly concerning a dispute over his recent marriage, interned and forced to cede to Leopold the official control of Transylvania, which in 1695 was occupied by 8,000 men and in 1696 put under the rule of a military governor.
Michael received a pension from the Emperor and lived in Vienna until his death in 1713, aged 36.