The Mughal Empire originated in the 16th century and grew to control most of the Indian subcontinent by the 17th century. Key Mughal rulers included Babur, who established the empire by defeating Ibrahim Lodi in 1526, and Akbar, who expanded the empire through military campaigns and instituted policies of religious tolerance and efficient administration. The Mughals levied taxes on farm produce to generate revenue and maintained control through a hierarchy of administrators. While the Mughal Empire experienced economic and commercial prosperity under efficient administration and military power, it also had stark inequalities with a small elite class controlling most of the wealth.