Equitable access to sanitation for all is a goal of sustainable development, notably in rural areas. However, studies including economic, socio-cultural, and other factors that have been conducted to comprehensively assess rural sanitation at the community level in developing countries are limited. This study aimed to investigate the current state of rural environmental sanitation on the community level and to evaluate the characteristics of the diverse sub-clusters. A multidimensional environmental sanitation survey was conducted on 400 communities in Chongqing, China in 2020, and the priority options for improving sub-clusters’ sanitation were explored using cluster analysis. Among all communities, more than 60 % had positive village appearance, 50.50 % had domestic sewage treatment, and the coverage rate of household sanitary toilets was 72.28 %. The average content for lead, cadmium (Cd), and chromium in soil was 26.01, 0.53, and 54.47 mg/kg, respectively. The communities were clustered into 3 groups (I, II, III) based on similar characteristics including basic information, village appearance, water, sanitation, hygiene management, bio-vector control, and soil pollution. The proportion of cluster I, II, and III was 39.25 % (157/400), 31.75 % (127/400), and 29.00 % (116/400), respectively. Each cluster had its sanitation characteristics, and significant differences among the sub-clusters were observed in Cd of soil (p = 0.001), domestic sewage disposal ratio (p < 0.001), and environmental health funding (p = 0.001). To sum up, the environmental sanitation in rural areas of Chongqing was better than that of the national average in China, but the Cd content of farmland soil was higher. Our study provides novel evidence for assessing the characteristics of rural sanitation at the community level, and communities with similar environmental health status were clustered into the same group, while the heterogeneity of different sub-cluster was thoroughly characterized. The hierarchical control strategy should be performed in communities based on different characteristics and deficiencies of the clusters to improve environmental sanitation.