Köprülüzade Fazıl Mustafa Pasha ("Köprülü Mustafa Pasha the Wise", also known as Gazi Fazıl Mustafa Köprülü (; ; 1637 – 19 August 1691, Slankamen) served as the Grand Vizier of the Ottoman Empire from 1689 to 1691, when the Empire was engaged in a war against the Holy League countries in the Great Turkish War. He was the son of Ayşe Hatun, of Turkish origin, and of Köprülü Mehmed Pasha. He was thus a member of the Köprülü family of Albanian origin through his father. His father, his elder brother Köprülü Fazıl Ahmed Pasha, as well as his two brothers-in-law (Kara Mustafa Pasha and Abaza Siyavuş Pasha) were former grand viziers. His epithet Fazıl means "wise" in Ottoman Turkish. Rise to Power He was the son of Köprülü Mehmed Pasha, the founder of the Köprülü family, and of Ayşe Hatun, the daughter of a notable originally from Kayacık, a village in Havza in Amasya. His parents met when his father was stationed in Köprü, formerly Kadegra, which got its name thanks to his maternal grandfather, who built a bridge () there. He became a member of the Sultan's guards and spent much of his time on military campaigns with his brother Fazıl Ahmed. Thanks to his brother-in-law, grand vizier Merzifonlu Kara Mustafa Pasha, Fazıl Mustafa became the seventh vizier in the imperial council, and by 1683 he had risen to third vizier. After Kara Mustafa was defeated at Vienna, Fazıl Mustafa was sent away from Istanbul. In 1687 an army rebellion made his brother-in-law Abaza Siyavuş Pasha grand vizier and forced sultan Mehmed IV to abdicate in favor of his brother Süleyman II. Fazıl Mustafa apparently was closely involved in Mehmed IV's dethronement and rose to second vizier. Factional politics soon resulted in his exile from the capital, and he was only saved from execution by the grace of the şeyhülislam. Until 1689, Fazıl Mustafa served as commander of Chios and the Cretan cities of Khania and Iráklion. Grand Vizierate After the Austrian victory at The Second Battle of Mohács, sultan Suleiman II was persuaded to appoint Köprülü Fazıl Mustafa Pasha as his grand vizier on 25 October 1689. Like his relatives, Fazıl Mustafa Pasha was a skilled administrator and military commander. He followed his father's footsteps by having corrupt government/military officials from the previous sultanate removed and executed. They were replaced with men loyal to Fazıl Mustafa Pasha, who