Ahmad Niyaltigin was the treasurer of a sultan who rose to power by seizing what from his younger twin?
Mas'ud I of Ghazni Mas'ud I of Ghazni (Persian: مسعود غزنوی‎ ‎ ), known as Amīr-i Shahīd (امیر شهید ; "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. His twin 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 Mohammad to the throne.
Abd al-Hafid of Morocco Abdelhafid of Morocco or Mulai Abdelhafid (24 February 1875, in Fes – 4 April 1937, in Enghien-les-Bains) (Arabic: عبد الحفيظ‎ ‎ ) was the Sultan of Morocco from 1908 to 1912 and a member of the Alaouite Dynasty. His younger brother, Abdelaziz of Morocco, preceded him. While Mulai Abdelhafid initially opposed his brother for giving some concessions to foreign powers, he himself became increasingly backed by the French and finally signed the protectorate treaty giving de facto control of the country to France.