Grand vizier (Persian: وزيرِ اعظم, romanized: vazîr-i aʾzam; Ottoman Turkish: صدر اعظم, romanized: sadr-ı aʾzam; Turkish: sadrazam) was the title of the effective head of government of many sovereign states in the Islamic world. The office of Grand Vizier was first held by officials in the later Abbasid Caliphate. It was then held in the Ottoman Empire, the Mughal Empire, the Sokoto Caliphate the Safavid Empire and Morocco. In the Ottoman Empire, the Grand Vizier held the imperial seal and could convene all other viziers to attend to affairs of the state; the viziers in conference were called "Kubbealtı viziers" in reference to their meeting place, the Kubbealtı ('under the dome') in Topkapı Palace. His offices were located at the Sublime Porte. Today, the Prime Minister of Pakistan is referred to in Urdu as Wazir-e-azam, which translates literally to Grand Vizier.
Initially, the Grand Viziers were exclusively of Turk origin in the Ottoman Empire. However, after there were troubles between the Turkish Grand Vizier Çandarlı Halil Pasha the Younger and Sultan Mehmed II (who had him executed), there was a rise of slave administrators (devshirme). These were much easier for the sultans to control, as compared to the free administrators of Turkish aristocratic origin.
The term "vizier" was originally used in the Abbasid Caliphate in the 8th century AD. This position was later adopted by the Ottomans in the early 14th century, by the Seljuks of Anatolia. During the nascent phases of the Ottoman state, "vizier" was the only title used. The first of these Ottoman viziers who was titled "Grand Vizier" (French spelling: grand-vézir[note 1]) was Çandarlı Halil Pasha the Elder. The purpose in instituting the title "Grand Vizier" was to distinguish the holder of the sultan's seal from other viziers. The initially more frequently used title of vezir-ı a’zam (وزیر اعظم) was gradually replaced by another one, sadr-ı a’zam (صدر اعظم from Arabic صَدْر "front part, bosom, forehead, lead, forefront" and أعْظَم "superior, major, maximal, paramount, grand", informally pronounced sadrazam), both meaning "grand vizier" in practice. Throughout the Ottoman history, the Grand Viziers have also been termed sadr-ı âlî (صدر عالی, "sublime vizier"), vekil-ı mutlak (وكیل مطلق, "absolute attorney"), sâhib-ı devlet (صاحب دولت, "holder of the State"), serdar-ı ekrem (سردار اكرم, "most noble [commander-in-]chief"), serdar-ı a’zam (سردار اعظم, "grand [commander-in-]chief") and zât-ı âsafî (ذات آصفی, "vizieral person").
Çandarlı Halil Pasha the Elder reformed the role of the vizier in several ways. Several viziers before him held an equivalent, but differently named office; he was the first who held the position of "Grand Vizier", during the reign of Murad I. He was the first advisor with a military background – his forerunners had come from a more scholarly class of men. It is also significant that he was the first of a political family that, at the time, rivaled the Ottoman dynasty itself. Several of Çandarlı Halil Pasha the Elder's kin went on to hold the office of Grand Vizier in the decades following his death.
Çandarlı Halil Pasha the Younger, the grandson of Pasha the Elder, was also highly influential in shaping the role of the Grand Vizier. During the reign of Mehmed II, the Younger opposed the siege of Constantinople and the ongoing hostilities with Christians. Two days after the siege was won by Mehmed II, the Younger was executed for his opposition. After his death, the position of Grand Vizier was chosen nearly exclusively from the kul system. Often, the men who were chosen had a Byzantine or Balkan background. According to Gábor, this was usually a political move, designed to appease powerful European factions to Ottoman supremacy. In fact, it was easier for the sultan to control an enslaved and non-Turk administrator. In the Ottoman Empire, executing a Grand Vizier of Turkish origin (in the event they were rebellious) and an enslaved foreigner would also give rise to different reactions. Further, the devshirme were less subject to influence from court factions. From the very beginning, the Turcoman were a danger that undermined the Sultan's creation of a strong state. 
Grand Viziers gained immense political supremacy in the later days of the Ottoman Empire. Power was centralized in the position of the Grand Vizier during the Köprülü era. Köprülü Mehmed Pasha was a powerful political figure during the reign of Mehmed IV, and was appointed to the office of Grand Vizier in 1656. He consolidated power within the position and sent the Sultan away from the city on hunting trips, thus stopping Mehmed's direct management over the state. Next, he forcibly removed any officers suspected of corruption; those who did not leave were executed. He also conducted campaigns against Venice and the Habsburgs, as well as quelling rebellions in Anatolia. On his deathbed five years later, he convinced Mehmed to appoint his son (Köprülü Fazıl Ahmed Pasha) as the next Grand Vizier, thus securing his dynasty a position of supreme power in the Empire. It was during the Köprülü era that the Ottoman Empire reached its largest geographic expansion across Europe, Asia Minor, and Africa.
In Ottoman legal theory, the Sultan was supposed to conduct affairs of state exclusively via the Grand Vizier, but in reality, this arrangement was often circumvented. As the Ottomanist Colin Imber writes, the sultan "had closer contact with the pages of the privy chamber, the kapi agha, the kizlar agha or with other courtiers than he did with the Grand Vizier, and these too could petition the sultan on their own or somebody else’s behalf. He might, too, be more inclined to take the advice of his mother, a concubine, or the head gardener at the helm of the royal barge, than of the Grand Vizier".
Bairam Khan was the Grand Vizier of the Mughal Empire, who led the forces of Akbar to victory during the Second Battle of Panipat (in which the allies of the Mughal Empire were victorious but suffered the most casualties in a large-scale battle).
Sadullah Khan, Grand Vizier of the Mughal Empire during the reign of Shah Jahan.
During the reign of Aurangzeb, Ali Quli Khan was bestowed this title.
Later general Zulfiqar Khan Nusrat Jung became Grand Vizier, his fame as one of the most greatest military leaders in the Mughal Empire would lead to his downfall when rogue generals executed him in a power struggle after the death of Aurangzeb.
In 1718, Balaji Vishwanath, leader of the antagonistic Maratha Confederacy, secured the right to collect Chauth and Sardeshmukhi from the Subahs of the Mughal Empire by the rogue Vizier Syed Hassan Ali Khan Barha, whose grip over the Deccan had substantially weakened. Asaf Jah I, however, refused to grant Chauth to the Maratha Confederacy during its onset in 1718 and in 1721, after the nobility of the Mughal Empire had the two Sayyid Brothers assassinated. However, the Marathas had already expanded up to the Narmada River, and entrenched themselves in that region thereafter. Baji Rao I later instigated war by collecting Chauth in 1723, and trying to expand Maratha rule in the Deccan and beyond, causing the outbreak of the Later Mughal-Maratha Wars.
Qamaruddin Khan was handpicked to be the Grand Vizier of the Mughal Empire, by Asaf Jah I. He successfully repelled Baji Rao I during the Battle of Delhi (1737), and negotiated peace after the occupation of the Mughal Empire by the forces of Nader Shah. He fell in battle after being struck by a stray artillery shell, by Afghan marauders in the year 1749.
After defeating Ahmad Shah Durrani, the new Mughal emperor, Ahmad Shah Bahadur, posted Safdarjung, Nawab of Oudh as Mughal Grand Vizier, Feroze Jung III as Mir Bakshi and Muin ul-Mulk (Mir Mannu), the son of late Grand Vizier Qamaruddin Khan, as the governor of Punjab
Notable fictional grand viziers
- Ahoshta Tarkaan (The Horse and His Boy)
- Iznogoud (comic series)
- Zig Zag (The Thief and the Cobbler)
- Jafar (Aladdin)
- Mas Amedda (Star Wars)
- Zurvan (Prince of Persia: The Sands of Time/The Two Thrones)
- Vizier Alemshah (Kuruluş: Osman)
- List of Grand Viziers of Persia
- List of Ottoman Grand Viziers
- List of Safavid Grand Viziers
- Sokoto Grand Vizier
- Wuzurg framadar
- Aksin Somel, Selcuk (2010). The A to Z of the Ottoman Empire. Scarecrow Press. p. 67. ISBN 9780810875791.
The disappearance of this dynasty [ Çandarlı family ] was symptomatic with the rise of the class of slave administrators, who were much easier for the sultan to control than free administrators of noble origin.
- Strauss, Johann (2010). "A Constitution for a Multilingual Empire: Translations of the Kanun-ı Esasi and Other Official Texts into Minority Languages". In Herzog, Christoph; Malek Sharif (eds.). The First Ottoman Experiment in Democracy. Würzburg. pp. 21–51. (info page on book at Martin Luther University) - Cited: p. 40 (PDF p. 42)
- Strauss, Johann (2010). "A Constitution for a Multilingual Empire: Translations of the Kanun-ı Esasi and Other Official Texts into Minority Languages". In Herzog, Christoph; Malek Sharif (eds.). The First Ottoman Experiment in Democracy. Würzburg: Orient-Institut Istanbul. pp. 21–51. (info page on book at Martin Luther University) // CITED: p. 38 (PDF p. 40/338).
- Wittek, Paul (2013-05-20). The Rise of the Ottoman Empire: Studies in the History of Turkey, thirteenth–fifteenth Centuries. Routledge. ISBN 978-1136513183.
- Ágoston, Gábor (2009). Encyclopedia of the Ottoman Empire. New York, NY: Facts on File, Inc. pp. 236.
- David Brewer. Greece, the Hidden Centuries: Turkish Rule from the Fall of Constantinople to Greek Independence. p. 51.
The outsides would owe their position, and their continuance on it, solely to the Sultan, and so be more reliably loyal than Turks subject to influence from court factions.
- Ahmad Feroz. The Making of Modern Turkey. Routledge. p. 1820.
From the very beginning, the relationship between the ruler and his Turcoman allies was fraught with tension which undermined all attempts by the sultan to create a strong state. With the conquest of the Balkans, the sultan found that he could lessen his dependence on his Turcoman notables by creating a counter-force from among the Christians in the newly conquered territories.
- Mikaberidze, Alexander (2011-07-22). Conflict and Conquest in the Islamic World: A Historical Encyclopedia [2 volumes]: A Historical Encyclopedia. ABC-CLIO. ISBN 9781598843378.
- Imber 2002, p. 175.
- Gawrych, George (2006). The Crescent and the Eagle: Ottoman rule, Islam and the Albanians, 1874–1913. London: IB Tauris. p. 23. ISBN 9781845112875.
- Sen, S. N. (19 March 2018). History Modern India. New Age International. ISBN 9788122417746. Retrieved 19 March 2018 – via Google Books.
- H. G. Keene (1866). Moghul Empire. Allen &co Waterloo Place Pall Mall. Digital Library of India Accessed 7 Jan 2012 Archived 2013-07-21 at the Wayback Machine
- "Marathas and the English Company 1707-1818 by Sanderson Beck". www.san.beck.org. Retrieved 19 March 2018.
- Imber, Colin (2002). The Ottoman Empire, 1300–1650: The Structure of Power. Palgrave Macmillan. ISBN 0-333-61387-2.