Under Peshwa Baji Rao, Gujarat, Malwa and Rajputana came under Maratha control. The decline of the Mughal Empire following the 27-year Mughal-Maratha war (1680–1707) led to rapid territorial gains for the Maratha Empire. The success of this campaign can be seen as the last saga of the long story of Panipat. In 1771, ten years after Panipat, he sent a large Maratha army into northern India in an expedition that was meant to re-establish Maratha domination in that area and punish refractory powers that had either sided with the Afghans, such as the Rohillas, or had shaken off Maratha domination after Panipat. This period is marked by the rule of Peshwa Madhavrao, who is credited with the revival of Maratha domination following the defeat at Panipat. The result of the battle was the halting of further Maratha advances in the north, and a destabilization of their territories, for roughly ten years. Shejwalkar, whose monograph Panipat 1761 is often regarded as the single best secondary source on the battle, says that "not less than 100,000 Marathas (soldiers and non-combatants) perished during and after the battle." Grant Duff includes an interview of a survivor of these massacres in his History of the Marathas and generally corroborates this number.
According to the single best eyewitness chronicle-the bakhar by Shuja-ud-Daulah's Diwan Kashi Raj-about 40,000 Maratha prisoners were slaughtered in cold blood the day after the battle. The extent of the losses on both sides is heavily disputed by historians, but it is believed that between 60,000–70,000 were killed in fighting, while the numbers of injured and prisoners taken vary considerably. The forces led by Ahmad Shah Durrani came out victorious after destroying several Maratha flanks. Protracted skirmishes occurred, with losses and gains on both sides. The battle lasted for several days and involved over 125,000 troops. The specific site of the battle itself is disputed by historians, but most consider it to have occurred somewhere near modern-day Kaalaa Aamb and Sanauli Road.
The battle is considered one of the largest and most eventful fought in the 18th century, and has perhaps the largest number of fatalities in a single day reported in a classic formation battle between two armies. Militarily, the battle pitted the artillery and cavalry of the Marathas against the heavy cavalry and mounted artillery (zamburak and jizail) of the Afghans and Rohillas led by Ahmad Shah Abdali and Najib-ud-Daulah, both ethnic Afghans (the former is also known as Ahmad Shah Durrani). The Third Battle of Panipat took place on 14 January 1761 at Panipat, about 60 miles (97 km) north of Delhi, between a northern expeditionary force of the Maratha Empire and invading forces of the King of Afghanistan, Ahmad Shah Abdali, supported by two Indian allies-the Rohilla Afghans of the Doab, and Shuja-ud-Daula, the Nawab of Awadh.