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.[60] By this time the kingdom and the port of Kozhikode was much reduced in importance.[122] The treaty provided for a mutual alliance between the two to expel the Portuguese from Malabar.