Mangroves are unique, and endangered, coastal ecosystems that play a vital role in the tropical and subtropical environments. A comprehensive description of the microbial communities in these ecosystems is currently lacking, and additional studies are required to have a complete understanding of the functioning and resilience of mangroves worldwide. In this work, we carried out a metagenomic study by comparing the microbial community of mangrove sediment with the rhizosphere microbiome of Avicennia marina, in northern Red Sea mangroves, along the coast of Saudi Arabia. Our results revealed that rhizosphere samples presented similar profiles at the taxonomic and functional levels and differentiated from the microbiome of bulk soil controls. Overall, samples showed predominance by Proteobacteria, Bacteroidetes and Firmicutes, with high abundance of sulfate reducers and methanogens, although specific groups were selectively enriched in the rhizosphere. Functional analysis showed significant enrichment in ‘metabolism of aromatic compounds’, ‘mobile genetic elements’, ‘potassium metabolism’ and ‘pathways that utilize osmolytes’ in the rhizosphere microbiomes. To our knowledge, this is the first metagenomic study on the microbiome of mangroves in the Red Sea, and the first application of unbiased 454-pyrosequencing to study the rhizosphere microbiome associated with A. marina. Our results provide the first insights into the range of functions and microbial diversity in the rhizosphere and soil sediments of gray mangrove (A. marina) in the Red Sea.