The Mughal dynasty, established in 1526 by Babur after victories at the battles of Panipat and Khanwa, ruled most of the Indian subcontinent until 1857. Significant emperors included Humayun, Akbar, Jahangir, Shah Jahan, and Aurangzeb, each contributing to the empire's expansion, architectural legacy, and subsequent decline. Bahadur Shah Zafar, the last Mughal emperor, was deposed and exiled by the British following the Indian rebellion of 1857.