The Mughal Empire or Mogul Empire, self-designated as Gurkani  was an empire established and ruled by a Persianate dynasty of Chagatai Turco-Mongol origin that extended over large parts of the Indian subcontinent and Afghanistan.

The beginning of the empire is conventionally dated to the founder Babur's victory over Ibrahim Lodi, the last ruler of the Delhi Sultanate in the First Battle of Panipat (1526). The Mughal emperors were Central Asian Turco-Mongols belonging to the Timurid dynasty, who claimed direct descent from both Genghis Khan (founder of the Mongol Empire, through his son Chagatai Khan) and Timur (Turco-Mongol conqueror who founded the Timurid Empire). During the reign of Humayun, the successor of Babur, the empire was briefly interrupted by the Sur Empire. The "classic period" of the Mughal Empire started in 1556 with the ascension ofAkbar the Great to the throne. Under the rule of Akbar and his son Jahangir, India enjoyed economic progress as well as religious harmony, and the monarchs were interested in local religious and cultural traditions. Akbar was a successful warrior. He also forged alliances with several Hindu Rajput kingdoms. Some Rajput kingdoms continued to pose a significant threat to Mughal dominance of northwestern India, but most of them were subdued by Akbar. All Mughal emperors were Muslims, except Akbar in the latter part of his life, when he followed a new religion called Deen-i-Ilahi, as recorded in historical books like Ain-e-Akbari andDabestan-e Mazaheb.

The Mughal Empire did not try to intervene in the local societies during most of its existence, but rather balanced and pacified them through new administrative practices and diverse and inclusive ruling elites,leading to more systematic, centralised, and uniform rule. Newly coherent social groups in northern and western India, such as the Marathas, the Rajputs, thePashtuns, the Hindu Jats and the Sikhs, gained military and governing ambitions during Mughal rule, which, through collaboration or adversity, gave them both recognition and military experience.

The reign of Shah Jahan, the fifth emperor, between 1628–58 was the golden age of Mughal architecture. He erected several large monuments, the best known of which is the Taj Mahal at Agra, as well as the Moti Masjid, Agra, the Red Fort, the Jama Masjid, Delhi, and the Lahore Fort. The Mughal Empire reached the zenith of its territorial expanse during the reign of Aurangzeband also started its terminal decline in his reign due to Maratha military resurgence under Shivaji Bhosale.

By the mid-18th century, the Marathas had routed Mughal armies, and won over several Mughal provinces from the Punjab to Bengal, and internal dissatisfaction arose due to the weakness of the Mughal Empire's administrative and economic systems, leading to the break-up of the empire and declaration of independence of its former provinces by the Nawabs of Bengal, Oudh, the Nizam of Hyderabad, Shah of Afghanistan and other small states. In 1739, the Mughals were crushingly defeated in the Battle of Karnal by the forces of Nader Shah, the founder of the Afsharid dynasty in Persia, and Delhi was sacked and looted, drastically accelerating their decline.

During the following century Mughal power had become severely limited and the last emperor, Bahadur Shah II, had authority over only the city of Shahjahanabad. He issued a firman supporting the Indian Rebellion of 1857 and following the defeat was therefore tried by the British East India Company for treason, imprisoned and exiled to Rangoon.

 The last remnants of the empire were formally taken over by the British, and the Government of India Act 1858 let the British Crownformally assume direct control of India in the form of the new British Raj.