Understanding the heterogeneity of community opinions on human-wildlife conflict is crucial for developing effective mitigation strategies. This research investigates the attitudes and behaviors of residents surrounding Paliyan Wildlife Sanctuary in Indonesia, with a focus on their interactions with the long-tailed macaque (Macaca fascicularis) and the resulting human-wildlife conflict (HWC). By employing the attitude-behavior-context (ABC) framework, the research aims to identify and cluster different community groups by using K-means clustering analysis based on their perceptions of macaques, conservation initiatives, and the management of human-wildlife conflict. We identified distinct clusters of residents, classified by their positive and negative attitudes, degree of support for wildlife conservation initiatives, their perceptions of the sanctuary’s management, and the intensity of conflicts they experience with macaques. The “Conditional Conservation Supporters” exhibit less trust in wildlife managers and comparatively greater support for conservation, while underscoring the necessity for successful conflict resolution. In contrast, the “Disillusioned Critics” display less faith in conservation authorities, limited endorsement of existing management practices, and a pronounced inclination to regulate macaque populations. This research highlights the intricate interaction between human communities and wildlife conservation, highlighting the necessity of understanding local attitudes and behaviors in shaping conservation outcomes. The study provides policymakers and conservation practitioners with essential information for designing more customized and effective interventions that meet both the ecological requirements of wildlife and the social dynamics of local communities. Keywords: forest-based ecosystem services, forest conservation, forest management, Macaca fascicularis, protected areas