In the mid-17th century, the Dutch, who had replaced the Portuguese as the dominant power in Ceylon, established hegemony over Maldivian affairs without involving themselves directly in local matters, which were governed according to centuries-old Islamic customs.