On 15 February 1771, an agreement was settled between the Marathas and Shah Alam’s son, the Crown Prince, who was in Delhi acting as Regent, that the Marathas would drive Zabita Khan and his Afghans out of Delhi, after which Scindia would escort Shah Alam to Delhi and hand over the palace to him.