Coastal sediments are a critical domain for carbon sequestration and are profoundly impacted by human activities. Therefore, it is essential to understand the structure and components of benthic autotrophs that play a crucial role in carbon sequestration processes, as well as the influence of anthropogenic activities on their communities. This study utilized an urban estuary, an industrial sea bay, a maricultural sea region, and two mangrove coastlines within the coastal areas of Guangdong Province, China. The micro-benthos in these environments, including prokaryotes and eukaryotes, were identified through high-throughput sequencing of 16S rRNA and 18S rRNA genes. The findings show that the autotrophic composition was altered by the interactions of anthropogenic heavy metals (Cd and Zn) and micro-eukaryotes (protazoa, metazoa, and parasitic organisms). Industrial pollution reduced the abundance of both prokaryotic and eukaryotic autotrophs. Mangroves induced a substantial transformation in the sediment eukaryotic and prokaryotic composition, increasing the proportion of autotrophs, notably sulfur-oxidizing and iron-oxidizing bacteria and microalgae. This alteration suggests an increase in specific sulfur and iron cycling with simultaneous carbon sequestration within mangrove sediments. These results indicate that anthropogenic activities affect sediment carbon sequestration by altering autotrophic assemblages along coastlines, thereby inducing consequential shifts in overall elemental cycling processes.