In April 1782, Najaf Khan hitherto the highest commander of the Mughal army died, after which a power struggle ensued allowing the Sikhs to capture Delhi.
The Sikhs reappeared in Delhi and plundered its environs and laid waste the country up to Khujra.
The main body of the Sikhs having plundered Aligarh and Buland Shahar proceeded towards Delhi where they further set Malka Ganj and Sabzi Mandi on fire.
They managed to capture the Red Fort on 11 March after defeating a defence by Prince Mirza Shikoh.
[9] Thereafter, a settlement was agreed upon between the Sikhs and the Delhi court which entailed a cash present of three lakh rupees and Baghel Singh staying behind at the head of 4,000 Sikh troops to oversee the construction of gurdwaras in the city.