Ahmad Niyaltigin was the treasurer of a Yemeni sultan who rose to power by seizing the Ghaznavid throne from his younger twin.
Ahmad Niyaltigin (Persian:   ) was a treasurer of Sultan Mahmud Ghaznavi and later of his son Sultan Mas'ud Ghaznavi. 
Mas'ud I of Ghazni (Persian:    ), known as Amr-i Shahd (  ; "the martyr king")(998  17 January 1040), was "sultan" of the Ghaznavid Empire from 1030 to 1040. 
 He rose to power by seizing the Ghaznavid throne from his younger twin Mohammad, who had been nominated as the heir upon the death of their father Mahmud of Ghazni. 
