Management and restoration of mangrove forests to protect coasts are promoted in many countries, including Indonesia. Indonesian mangrove forests are actively restored and managed by local communities for their ecosystem services, including coastal protection. Whether community-based mangrove management (CBMM) is effective is still debated. Our study analysed the effectiveness of different CBMM practices in four Central Javan communities by analysing the capacity of their mangrove forests to protect against coastal hazards. We used complementary interviews, field assessments and literature reviews to collect the necessary information.The overall CBMM performance and success significantly differed for each community's mangrove rehabilitation effort and the resulting coastal protection service. Of the four communities, Bedono performed best in terms of mangrove coverage, forest structure and restored coastal protection service. This is explained by multiple factors, such as application of long-term and integrated CBMM approaches, involving appropriate maintenance and additional measures to reduce wave energy. Our results can help governments, practitioners and communities to better understand the factors that contribute to CBMM's success and failure when restoring and managing mangrove forests and protecting coasts.