of occupation by the Marathas. In 1761 the British captured Mahé, India, and the settlement was handed over to the Rajah of Kadathanadu. The British restored Mahé, India to the French as a part of the 1763 Treaty of Paris. In 1779, the Anglo-French war broke out, resulting in the French loss of Mahé, India. In 1783, the British agreed to restore to the French their settlements in India, and Mahé, India was handed over to the French in 1785. Dutch trade and influences In 1602, the Zamorin sent messages to Aceh promising the Dutch a fort at Kozhikode if they would come and trade there. Two factors, Hans de Wolff and Lafer, were sent on an Asian ship from Aceh, but the two were captured by the chief of Tanur, and handed over to the Portuguese. A Dutch fleet under Admiral Steven van der Hagen arrived at Kozhikode in November 1604. It marked the beginning of the Dutch presence in Kerala and they concluded a treaty with Kozhikode on 11 November 1604, which was also the first treaty that the Dutch East India Company made with an Indian ruler. By this time the kingdom and the port of Kozhikode was much reduced in importance. The treaty provided for a mutual alliance between the two to expel the Portuguese from Malabar. In return the Dutch East India Company was given facilities for trade at Kozhikode and Ponnani, including spacious storehouses. The weakened Portuguese were ousted by the Dutch East India Company, who took advantage of continuing conflicts between Kozhikode and Kochi to gain control of the trade. In 1664, the municipality of Fort Kochi was established by Dutch Malabar, making it the first municipality in the Indian subcontinent, which got dissolved when the Dutch authority got weaker in the 18th century. The Dutch Malabar (1661–1795) in turn were weakened by their constant battles with Marthanda Varma of the Travancore Royal Family, and were defeated at the Battle of Colachel in 1741, resulting in the complete eclipse of Dutch power in Malabar. The Treaty of Mavelikkara was signed by the Dutch and Travancore in 1753, according to which the Dutch were compelled to detach from all political involvements in the region. In the meantime, Marthanda Varma annexed many smaller northern kingdoms through military conquests, resulting in the rise of Travancore to a position of pre-eminence in Kerala. Travancore became the most