Nadir Shah, the Persian ruler, invaded India in 1739 during Muhammad Shah 'Rangeela's' reign, defeating the Mughals at the Battle of Karnal and plundering Delhi. Babur founded the Mughal dynasty, Ahmad Shah Abdali invaded later in the 1700s, and Genghiz Khan lived in the 13th century.