Original sentence: Ahmad Shah sacked the Mughal capital and withdrew with the booty he coveted.By 1760, the Maratha groups had coalesced into a big enough army under the command of Sadashivrao Bhau.Early skirmishes ended in victory for the Afghans against the smaller Maratha garrisons in Northwest India.He succeeded in ousting Timur Shah and his court from India and brought Lahore, Multan, Kashmir and other subahs on the Indian side of Attock under Maratha rule.Marathas were now straining to expand their area of control towards the Northwest of India.The Mughal power in northern India had been declining since the reign of Aurangzeb, who died in 1707; In 1751-52, Ahamdiya treaty was signed between the Marathas and Mughals, when Balaji Bajirao was the Peshwa.The Third battle of Panipat (January 1761), fought between largely Muslim and largely Hindu armies was waged along a twelve-kilometre front, and resulted in a decisive victory for Ahmad Shah.Through this treaty, the Marathas controlled virtually the whole of India from their capital at Pune and Mughal rule was restricted only to Delhi(Mughals remained the nominal heads of Delhi).Thus, upon his return to Kandahar in 1757, Ahmad was forced to return to India and face the formidable attacks of the Maratha Confederacy.To counter the Afghans, Peshwa Balaji Bajirao sent Raghunathrao
Edited sentence: After Ahmad Shah sacked the Mughal capital and withdrew with the booty he coveted, the Marathas filled the power void; in 1758, within a year of Ahmad Shah's return to Kandahar, the Marathas secured possession of the Punjab, and succeeded in ousting his son Timur Shah and his court from India.By 1760, the Maratha groups had coalesced into a great army that probably outnumbered Ahmad Shah's forces.Early skirmishes ended in victory for the Afghans.The Mughal power in northern India had been declining since the reign of Aurangzeb, who died in 1707; the Marathas, who already controlled much of western and central India from their capital at Pune, were straining to expand their area of control.The Third battle of Panipat (January 1761), fought between largely Muslim and largely Hindu armies who numbered as many as 100,000 troops each, was waged along a twelve-kilometre front, and resulted in a decisive victory for Ahmad Shah