The war concluded with the Treaty of Madras (1769), which was largely on terms favourable to Haider Ali, including a mutual restoration of territories and a defensive alliance clause.