The Treaty of Madras was humiliating for the British, establishing mutual territory restitution and a defensive alliance.