Muhi al-Din Muhammad (; – 3 March 1707), commonly known as () and by his regnal title Alamgir (), was the sixth emperor of the Mughal Empire, ruling from July 1658 until his death in 1707. Under his emperorship, the Mughals reached their greatest extent with their territory spanning nearly the entirety of Indian subcontinent. Widely considered to be the last effective Mughal ruler, Aurangzeb compiled the Fatawa 'Alamgiri and was amongst the few monarchs to have fully established Sharia and Islamic economics throughout the Indian subcontinent. Belonging to the aristocratic Timurid dynasty, Aurangzeb's early life was occupied with pious pursuits. He held administrative and military posts under his father Shah Jahan () and gained recognition as an accomplished military commander. Aurangzeb served as the viceroy of the Deccan in 1636–1637 and the governor of Gujarat in 1645–1647. He jointly administrated the provinces of Multan and Sindh in 1648–1652 and continued expeditions into the neighboring Safavid territories. In September 1657, Shah Jahan nominated his eldest and liberalist son Dara Shikoh as his successor, a move repudiated by Aurangzeb, who proclaimed himself emperor in February 1658. In April 1658, Aurangzeb defeated the allied army of Shikoh and the Kingdom of Marwar at the battle of Dharmat. Aurangzeb's decisive victory at the battle of Samugarh in May 1658 cemented his sovereignty and his suzerainty was acknowledged throughout the Empire. After Shah Jahan recovered from illness in July 1658, Aurangzeb declared him incompetent to rule and imprisoned his father in the Agra Fort. Under Aurangzeb's emperorship, the Mughals reached its greatest extent with their territory spanning nearly the entire Indian subcontinent. His reign is characterized by a period of rapid military expansion, with several dynasties and states being overthrown by the Mughals. His conquests acquired him the regnal title Alamgir ('Conqueror'). The Mughals also surpassed Qing China as the world's largest economy and biggest manufacturing power. The Mughal military gradually improved and became one of the strongest armies in the world. A staunch Muslim, Aurangzeb is credited with the construction of numerous mosques and patronizing works of Arabic calligraphy. He successfully imposed the Fatawa 'Alamgiri as the principal regulating body of the empire and prohibited religiously forbidden activities in Islam. Although Aurangzeb suppressed several local revolts, he maintained cordial relations with foreign governments. Aurangzeb is generally considered by Islamic historians to be one of the greatest emperors of the Mughals. While there is