In the 18th century, the Bhutanese invaded and occupied the kingdom of Koch Bihar. In 1772, the Maharaja of Koch Bihar appealed to the British East India Company which assisted by ousting the Bhutanese and later in attacking Bhutan itself in 1774. A peace treaty was signed in which Bhutan agreed to retreat to its pre-1730 borders. However, the peace was tenuous, and border skirmishes with the British were to continue for the next hundred years. The skirmishes eventually led to the Duar War (1864–65), a confrontation for control of the Bengal Duars. After Bhutan lost the war, the Treaty of Sinchula was signed between British India and Bhutan. As part of the war reparations, the Duars were ceded to the United Kingdom in exchange for a rent of Rs. 50,000. The treaty ended all hostilities between British India and Bhutan.