Complex sentence: Some inhabitants of the municipality consider San Pedro as one of Mexico's cleanest and safest cities thanks in part to their involvement in the community's welfare.
Split into simpler sentences: Some inhabitants of the municipality consider San Pedro as one of Mexico's cleanest and safest cities. Thanks, in part, to their involvement in the community's welfare.