Abū Alī Hasan ibn Muhammad ibn Abbās, better known as Hasanak the Vizier, also Hasanak Mīkālī, was an Iranian statesman from the Mikalid family, who served as the vizier of the Ghaznavid sultan Mahmud from 1024 to 1030. After having been removed from the vizier, Hasanak still continued to be an important and influential figure in the Ghaznavid state. However, he later fell out of favor and was executed by hanging during the reign of Mahmud's son Mas'ud I. Hasanak's official charge was infidelity which was a politically motivated charge, and his execution was ordered by the Abbasid caliph of Baghdad.
Coin of Mahmud
A vizier is a high-ranking political advisor or minister in the Near East. The Abbasid caliphs gave the title wazir to a minister formerly called katib (secretary), who was at first merely a helper but afterwards became the representative and successor of the dapir of the Sassanian kings.
The winter Diwan of a Mughal Vizier
Portrait of Amir Kabir, Vazir of Naser al-Din Shah Qajar (Qajar dynasty)