Mangroves are unique coastal ecosystems, which have many important ecological functions, as they are a reservoir of many marine species well adapted to saline conditions and are fundamental as sites of carbon storage. Although the microbial contribution to nutrient cycling in these ecosystems has been well recognized, there is a lack of information regarding the microbial composition and structure of different ecological types of mangrove forests. In this study, we characterized the microbial community (Bacteria and Archaea) in sediments associated with five ecological types of mangrove forests in a coastal lagoon dominated by Avicennia germinans and Rhizophora mangle, through 16S rRNA-V4 gene sequencing. Overall, Proteobacteria (51%), Chloroflexi (12%), Gemmatimonadetes (5%) and Planctomycetes (6%) were the most abundant bacterial phyla, while Thaumarchaeota (30%), Bathyarchaeota (21%) and Nanoarchaeaeota (18%) were the dominant archaeal phyla. The microbial composition associated with basin mangroves dominated by Avicennia germinans was significantly different from the other ecological types, which becomes relevant for restoration strategies.