Mughal emperors (, Shāhanshāhān-e-Hindustan) were the supreme heads of state of the Mughal Empire on the Indian subcontinent, mainly corresponding to the modern countries of India, Pakistan, Afghanistan and Bangladesh. The Mughal rulers styled themselves as Badshah (great king) or Shahanshah, a title usually translated from Persian as "emperor". They began to rule parts of India from 1526, and by 1707 ruled most of the sub-continent. After that they declined rapidly, but nominally ruled territories until the Indian Rebellion of 1857. The Mughals were a branch of the Timurid dynasty of Turco-Mongol origin from Central Asia. Their founder Babur, a Timurid prince from the Fergana Valley (modern-day Uzbekistan), was a direct descendant of Timur (generally known in western nations as Tamerlane) and also affiliated with Genghis Khan through Timur's marriage to a Borjigin princess. Many of the later Mughal emperors had significant Indian Rajput and Persian ancestry through marriage alliances as emperors were born to Rajput and Persian princesses. Akbar, for instance, was half-Persian (his mother was of Persian origin), Jahangir was half-Rajput and quarter-Persian, and Shah Jahan was three-quarters Rajput. During the reign of Aurangzeb (1658-1707), the empire, as the world's largest economy and manufacturing power, worth over 25% of global GDP, controlled nearly all of the Indian subcontinent, extending from Chittagong in the east to Kabul and Balochistan in the west, Kashmir in the north to the Kaveri River basin in the south. Its population at the time has been estimated as between 110 and 150 million (a quarter of the world's population), over a territory of more than 4 million square kilometres (1.5 million square miles). Mughal power rapidly dwindled during the 18th century and the last emperor, Bahadur Shah II, was deposed in 1857, with the establishment of the British Raj. The Mughal Empire was founded by Babur, a Timurid prince and ruler from Central Asia.