 They signed the Kandyan Treaty of 1638 with Rajasinghe II and soon embarked on a war against their common enemy.As such the Dutch were appointed as a protector of the country.Meanwhile, however, Rajasinghe II approached the French and offered them the Trincomalee fort as a check against Dutch power.