The last Peshwa Baji Rao II had to accept British supremacy as per the Treaty of Vasai (31 December 1802); According to the treaty of 13 June 1817, he had to give up his authority over the Maratha Empire.