Abu al-Qasim Mahmud ibn Sabuktigin (Persian: ابوالقاسم محمود بن سبکتگین, romanized: Abu al-Qāṣim Maḥmūd ibn Sabuktigīn; 2 October 971 – 30 April 1030), usually known as Mahmud of Ghazni or Mahmud Ghaznavi (محمود غزنوی), was Sultan of the Ghaznavid Empire, ruling from 998 to 1030. During his reign and in medieval sources, he is usually known by his honorific title Yamin al-Dawla (یمین الدوله, lit. 'Right Hand of the State'). At the time of his death, his kingdom had been transformed into an extensive military empire, which extended from present-day northwestern Iran proper to the Punjab in the Indian subcontinent, Khwarazm in Transoxiana, and Makran.
Highly Persianized, Mahmud continued the bureaucratic, political, and cultural customs of his predecessors, the Samanids. He established the ground for a future Persianate state in Punjab, particularly centered on Lahore, a city he conquered. His capital of Ghazni evolved into a significant cultural, commercial, and intellectual centre in the Islamic world, almost rivalling the important city of Baghdad. The capital appealed to many prominent figures, such as al-Biruni and Ferdowsi.