Ibrahim of Ghazna (b. 1033 – d. 1099) was sultan of the Ghaznavid empire from April 1059 until his death in 1099. Having been imprisoned at the fortress of Barghund, he was one of the Ghaznavid princes that escaped the usurper Toghrul's massacre in 1052. After his brother Farrukh-Zad took power, Ibrahim was sent to the fortress of Nay, the same fortress where the poet Masud Sa'd Salman would later be imprisoned for ten years.