Microbe plays an important role in the biogeochemical cycles of the coastal waters. However, comprehensive information about the microbe in the gulf waters is lacking. This study employed high-throughput sequencing and quantitative PCR (qPCR) to investigate the distribution patterns of bacterial, archaeal, ammonia-oxidizing bacterial (AOB), and archaeal (AOA) communities in Daya Bay. Community compositions and principal co-ordinates analysis (PCoA) exhibited significant spatial characteristics in the diversity and distributions of bac-teria, archaea, AOB, and AOA. Notably, various microbial taxa (bacterial, archaeal, AOB, and AOA) exhibited significant differences in different regions, playing crucial roles in nitrogen, sulfur metabolism, and organic carbon mineralization. Canonical correlation analysis (CCA) or redundancy analysis (RDA) indicated that environmental parameters such as temperature, salinity, nitrate, total nitrogen, silicate, and phosphate strongly influenced the distributions of bacterial, archaeal, AOB, and AOA. This study deepens the understanding of the composition and ecological function of prokaryotes in the bay.