Microbial communities are important players in coastal sediments for the functioning of the ecosystem and the regulation of biogeochemical cycles. They also have great potential as indicators of environmental perturbations. To assess how microbial communities can change their composition and abundance along coastal areas, we analyzed the composition of the microbiome of four locations of the Yucatan Peninsula using 16S rRNA gene amplicon sequencing. To this end, sediment from two conserved (El Palmar and Bocas de Dzilam) and two contaminated locations (Sisal and Progreso) from the coast northwest of the Yucatan Peninsula in three different years, 2017, 2018 and 2019, were sampled and sequenced. Microbial communities were found to be significantly different between the locations. The most noticeable difference was the greater relative abundance of Planctomycetes present at the conserved locations, versus FBP group found with greater abundance in contaminated locations. In addition to the difference in taxonomic groups composition, there is a variation in evenness, which results in the samples of Bocas de Dzilam and Progreso being grouped separately from those obtained in El Palmar and Sisal. We also carry out the functional prediction of the metabolic capacities of the microbial communities analyzed, identifying differences in their functional profiles. Our results indicate that landscape of the coastal microbiome of Yucatan sediment shows changes along the coastline, reflecting the constant dynamics of coastal environments and their impact on microbial diversity.