According to the terms of the Treaty of Bhairowal, it was agreed that the British army would stay at Lahore.