From 1612 to 1658, the Dutch and the Portuguese fought over the island, and Kandy sided with the Dutch. The Dutch won and occupied most of the coastal sections of the island (Dutch Ceylon, 1640–1796), while the kingdom of Kandy retained the interior. The Dutch were less zealous than the Portuguese in their religious proselytizing though they still discriminated against non-Christians (as well as Catholics). Non-Protestant worship was also not allowed in some towns, and Buddhist temple properties that had been confiscated by the Portuguese were not returned.