The Tripartite Treaty was signed in the year 1838. The main purpose of signing this treaty was to become united in tough times. Ranjit Singh did not agree to sign this treaty at first as he realized he will become a dependent ally of the British in Kabul.