Question: Ahmad Niyaltigin was the treasurer of a sultan who rose to power by seizing what from his younger twin?

full_context: Document 1: Wajih ad-Din Mas'ud: Wajih ad-Din Mas'ud (died 1344) was the leader of the Sarbadars of Sabzewar from 1338-1343 until his death. Under his rule, the Sarbadar state developed its characteristic dual nature as both a secular and radical Shi'i state.
Document 2: Zafar Khan Malik Dinar: Malik Dinar was a native Indian slave who served as general in Khalji Dynasty of Delhi Sultanate. He served as subordinate officer Malik Kafur and was also a "Shihna-yi pil" or intendant of elephantry and was sent by Kafur to suppress rebellion in Gujarat. His daughter has been married the third Khalji dynasty sultan, Qutb ud din Mubarak Shah. he was given the title 'Zafar Khan'(literally chief of victory). The very same title which bestowed to one of greatest Khalji military general who repelled the Chagatai Khanate repeated invasions into India, Zafar Khan Malik Hizbaruddin.
Document 3: Muhammad ibn Mikal: Muhammad ibn Mikal was an Iranian nobleman from the Mikalid family, who served as a military commander of the Tahirid dynasty. He was the son of Mikal, a nobleman who had left Iraq and settled in Khurasan, and could trace his descent back to the Sogdian ruler Divashtich. Muhammad also had a brother named Shah ibn Mikal, who, during his early career, along with Muhammad, played an important role under the Tahirid ruler Abdallah ibn Tahir al-Khurasani. In 864, the Alid Hasan ibn Zayd conquered Tabaristan from the Tahirids, while another Alid named Muhammad ibn Ja'far ibn al-Hasan expelled the Tahirid governor of Ray, and captured the city. The Tahirid ruler Muhammad ibn Tahir shortly sent an army from Khurasan under Muhammad ibn Mikal, who managed to recapture the city and capture Muhammad ibn Ja'far. Hasan, however, quickly made a counter-attack under his Dailamite general Wajin, who managed to rout the army of Muhammad ibn Mikal, and kill the latter.
Document 4: Ahmad Yusuf Nuristani: Dr. Ahmad Yusuf Nuristani is a well-known and highly respected politician in Afghanistan. Nuristani played an important role in the resistance against the Russian invasion of Afghanistan. He was the spokesperson for President Hamid Karzai, and Chief of Presidential Media, Office of the President, during the interim administration. Subsequently, he was appointed as a Minister of Irrigation, Water Resources, and Environment during the transitional period of Afghan government. Responsible for planning and policy development, implementation, and oversight of the ministry's budget/spending; managed rehabilitation projects relating to the repair of old and damaged irrigation systems, and the design of over 1200 small and medium-sized irrigation canals during tenure as minister; paved the way for the completion of large irrigation systems which were left incomplete due to the war, such as the Kajaki Dam, Salma Dam, and Kunduz and Khan Abad irrigation projects; addressed and mitigated many human resource challenges in terms of limited trained professionals for executing projects. He secured funding for training from the Asian Development Bank and from USAID, Canadian CIDA, and GTZ and KFW Germany in order to repair damaged reservoirs; raised funds for various development projects by securing grants reaching over $12 million from the World Bank – enabling feasibility studies of major irrigation projects ensured training of Ministry staff in their respective fields and particularly in procurement procedures acceptable to international organizations.
Document 5: Muhammad Imaaduddeen V: Sultan Muhammad Imaaduddeen V (1884–1920), son of Ibrahim Nooraddeen and Bodugaluge Didi of Machchangoalhi Ganduvaru, and also younger half-brother of Muhammad Shamsuddeen III, was the sultan of the Maldives from 1892 to 1893 for five months. He was 8 years old when he became the sultan, after the death of his father Sultan Ibrahim Nooraddeen. Despite having an older half-brother, Imaaduddeen V, was appointed as sultan by a decree of the Council of Ministers ("Raskan-hingaa Majlis") headed by Ibrahim Didi, brother-in-law to the late sultan Nooraddeen. Meanwhile, a vigorous protest was handed down to the Ceylon Governor in Colombo by Muhammed Didi, the brother of Kakaage Don Goma, one of the late Sultan Nooraddeen's wives highlighting that "the Law of Succession in the Maldive Islands" which supported lineal primogeniture has been breached and that his great-nephew Muhammed Shamsuddeen (then Kakaage Doshi Mannipulhu) who was 14 and thus the eldest son of the late Sultan should be the legitimate heir to the throne. Five months later Imaaduddeen was deposed by Muhammad Shamsuddeen III as the Sultan of the Maldives. He died during his brother's reign.
Document 6: Mahmud Hotak: Shāh Mahmūd Hotak, (Pashto, Dari: ), also known as Shāh Mahmūd Ghiljī (Pashto: شاه محمود غلجي‎ ) (lived 1697 – April 22, 1725), was an Afghan ruler of the Hotak dynasty who overthrew the heavily declined Safavid dynasty to briefly become the king of Persia from 1722 until his death in 1725.
Document 7: Ahmad Niyaltigin: Ahmad Niyaltigin (Persian: ‎ ‎ ) was a treasurer of Sultan Mahmud Ghaznavi and later of his son Sultan Mas'ud Ghaznavi. Sultan Masud appointed him governor of Punjab region in 1033. Ahmad Niyaltigin with small detachment of soldiers raided Varanasi, before withdrawing back to Punjab.
Document 8: 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.
Document 9: Suhaldev: Suhaldev is a semi-legendary Indian king from Shravasti, who is said to have defeated and killed the Ghaznavid general Ghazi Saiyyad Salar Masud in the early 11th century. He is mentioned in "Mirat-i-Masudi", a 17th-century Persian-language historical romance. Since the 20th century, various Hindu nationalist groups have characterized him as a Hindu king who defeated a Muslim invader.
Document 10: An-Nasir Ahmad, Sultan of Egypt: An-Nasir Shihab ad-Din Ahmad ibn Muhammad ibn Qalawun, better known as an-Nasir Ahmad, (1316 – 16 July 1344) was the Bahri Mamluk sultan of Egypt, ruling from January to June 1342. A son of Sultan an-Nasir Muhammad, he became embroiled in the volatile succession process following his father's death in 1341. An-Nasir Ahmad lived much of his life in the desert fortress of al-Karak in Transjordan and was reticent to assume the sultanate in Cairo, preferring al-Karak, where he was closely allied with the inhabitants of the city and the Bedouin tribes in its vicinity. His Syrian partisans, emirs Tashtamur and Qutlubugha al-Fakhri, successfully maneuvered to bring Syria under an-Nasir Ahmad's official control, while sympathetic emirs in Egypt were able to oust the Mamluk strongman Emir Qawsun and his puppet sultan, the five-year-old half-brother of an-Nasir Ahmad, al-Ashraf Kujuk. An-Nasir Ahmad eventually assumed the sultanate after frequently delaying his departure to Egypt.
Document 11: Ibn al-Sal'us: Al-Sahib Shams ad-Din Muhammad ibn Uthman ibn Abi al-Raja' al-Tanukhi, better known as Ibn al-Sal'us (died 10 December 1294), was an Arab merchant and the "wazir" (chief financial adviser) of the Mamluk sultan, al-Ashraf Khalil (r. 1290–1293). Ibn al-Sal'us began his career as a merchant based in Damascus, where he was eventually employed as a deputy "muhtasib" (market inspector). He gained a good reputation for his efforts at ensuring accountability in Damascene commerce. He was later appointed chief "muhtasib" in Cairo by Sultan al-Mansur Qalawun in 1290, but was soon after exiled to the Hejaz. When al-Ashraf Khalil succeeded Qalawun in November 1290, he recalled Ibn al-Sal'us to Cairo and appointed him "wazir". Ibn al-Sal'us restored the political influence of the office of "wazir" and accompanied al-Ashraf Khalil during military expeditions against the Crusaders and the Armenians. His arrogance toward senior Mamluk emirs drew their resentment. In the months following al-Ashraf Khalil's murder, Ibn al-Sal'us was arrested and tortured to death on the orders of his rival, Emir Sanjar al-Shuja'i.
Document 12: Mubarak Khan: Mubarak Khan also Mubarak Khalji (died 1320 AD) (son of Alauddin Khalji) named himself regent of Khalji dynasty (controlling large portions of the northern Indian subcontinent) after escaping an assassination attempt on him by Malik Kafur, once his father's trusted general. After Malik Khafur was murdered for his act by Khalji's bodyguards, Mubarak took the throne.
Document 13: Ghulam Rasool Gangi: Ghulam Rasool Gangi was a direct descendant of Genghis Khan and the son of Pir Bukhsh. His family moved from Yarkand and Kashgar to India in 1598, where he lived in the Siakolt district of Langrewali. For three generations Abdul Rashid Khan's descendants were rulers of Khotan and Yarkand, but were scattered geographically until 1707. Quresh Sultan, one of Abdul Rashid Khan's sons, and other Chugtai royal family members were relocated to India during the time of Emperor Akbar.
Document 14: Nawab Khair Andesh Khan Sani: Nawab Khair Andesh Khan Sani was son of Nawab Khair Andesh Khan and belonged the illustrious family of the Kamboh Nawabs of Meerut. His original name was Muhammad Masih. He held a manasab of five thousand and the title of "Nek Andesh Khan" under Mughal Emperor Aurangzeb. Later under Emperor Bahadur Shah, he held six thousand mansab and received a title of Khair Andesh Khan. Khair Andesh Khan Sani built Khair Nagar in Bareilly and also built one Idgah, one Mubarak palace and many other buildings in Khair Nagar. He also waged war against king of Bundelkhand and reduced him to subjugation. His son was given the title of "Nek Andesh Khan" and a big fief or "Jagir" in Bareilly. His one brother Nawab Khairiyat Andesh Khan held a mansab of five thousand and remained governor of Kashmir where he constructed a Bazar known as Nawab Bazar. His second brother also got the title of "Kheir Andesh Khan Salas" during the reign of emperor Ahmed Shah Durani and also held the governorship of Kashmir.
Document 15: Mirwais Hotak: Mīrwais Khān Hotak (Pashto: مير ويس خان هوتک‎ ), also known as Shāh Mirwais Ghiljī (Pashto: شاه ميرويس غلجي‎ ) (1673 – November 1715), was an influential tribal chief of the Ghilji Pashtuns from Kandahar, Afghanistan, who founded the Hotak dynasty that existed from 1709 to 1738. After revolting and killing the Safavid Persian governor over the region, Gurgin Khan in April 1709, he declared what is now southern Afghanistan independent. He is widely known as "Mīrwais Nīkə" (ميرويس نيکه) or "Mīrwais Bābā" (ميرويس بابا, "Mirwais the father") in the Pashto language.
ground_truth: the Ghaznavid throne