Masʽud I of Ghazni (Persian: مسعود غزنوی), known as Amīr-i Shahīd (امیر شهید; "the martyr king") (b. 998 – d. 17 January 1040), was sultan of the Ghaznavid Empire from 1030 to 1040. The eldest son of Mahmud of Ghazni, he rose to power by seizing the Ghaznavid throne from his younger twin brother, Mohammad, who had been nominated as the heir upon the death of their father. Mohammad was shortly blinded and imprisoned. However, when much of Masʽud's western domains had been wrested from his control, his troops rebelled against him and reinstated his brother to the throne.