The Mughal Empire existed from 1526 to 1857. When it was biggest it ruled most of the Indian subcontinent, then known as Hindustan, and parts of what is now Afghanistan. It was founded by Babur in 1526 and ruled until 1530. Its most important ruler was Akbar (1556–1605). After the death of Aurangjeb (1658–1707), the Mughal Empire became weak. It continued until 1857. By that time, India came under the British Raj.