The emerging pollutants antibiotic resistance genes (ARGs) are prevalent in aquatic environments such as estuary. Coastal mangrove ecosystems always serve as natural wetlands for receiving sewage which always carry ARGs. Currently, the research considering ARG distribution in mangrove ecosystems gains more interest. In this work, we investigated the diversity of ARGs in an urban estuary containing mangrove and nonmangrove areas of the South China Sea. A total of 163 ARGs that classified into 22 resistance types and six resistance mechanisms were found. ARG abundance of the samples in the estuary is between 0.144 and 0.203. This is within the general range of Chinese estuaries. The difference analysis showed that abundances of total ARGs, six most abundant ARGs (mtrA, rpoB, rpoC, rpsL, ef‐Tu, and parY), the most abundant resistance types (elfamycin, multidrug, and peptide), and the most abundant resistance mechanism (target alteration) were significantly lower in mangrove sediment than that in nonmangrove sediment (p < 0.05). Network and partial redundancy analysis showed that sediment properties and mobile genetic elements were the most influential factors impacting ARG distribution rather than microbial community. The two factors collectively explain 51.22% of the differences of ARG distribution. Our study indicated that mangrove sediments have the capacity to remove ARGs. This work provides a research paradigm for analysis of ARG prevalence and proliferation in the subtropical marine coastal mangrove ecosystem.