Extensive trade networks and Islam shaped Malay identity. The Dutch conquest of Makassar (1666-69) compelled the Malays there to redefine themselves, mastering new trade routes, political arenas and social alliances. During the eighteenth century they both evaded and exploited ethnic classification, as their enforced focus on regional commerce and integration into port society encouraged localisation.