The aim of this investigation was to examine the microbial populations and their resistance patterns towards antibiotics, including the impact of nitrogen metabolism in response to the reintroduction of antibiotics, as well as the presence of resistance genes in sediments from shrimp ponds that have been utilized for extended periods of 5, 15, and over 30 years. Results showed that the sediments exhibited a high prevalence of Proteobacteria, Bacteroidetes, Planctomycetes, Chloroflexi, and Oxyphotobacteria as the most abundant bacterial phyla, accounting for 70.35–77.43% of the total bacterial community. The five most abundant phyla of fungi detected in all sediments, namely Rozellomycota, Ascomycota, Aphelidiomycota, Basidiomycota, and Mortierellomycota, constituted 24.26–32.54% of the total fungal community. It was highly probable that the Proteobacteria and Bacteroidetes phyla serve as the primary reservoir of antibiotic-resistant bacteria (ARB) in the sediment, which included various genera like Sulfurovum, Woeseia, Sulfurimonas, Desulfosarcina, and Robiginitalea. Among these genera, Sulfurovum appeared to be the most widespread in the sediment of aquaculture ponds that have been in operation for more than three decades, while Woeseia dominated in ponds that have been recently reclaimed and have a 15-year aquaculture history. Antibiotic resistance genes (ARGs) were categorized into seven distinct groups according to their mechanism of action. The prevalence of multidrug-resistant ARGs was found to be the highest among all types, with an abundance ranging from 8.74 × 10−2 to 1.90 × 10−1 copies per 16S rRNA gene copies. The results of a comparative analysis of sediment samples with varying aquaculture histories indicated that the total relative abundance of ARGs was significantly diminished in sediment with a 15-year aquaculture history as opposed to sediment with either a 5-year or 30-year aquaculture history. Another assessment of antibiotic resistances in aquaculture sediments involved an examination of the effects of reintroducing antibiotics on nitrogen metabolism processes. The findings revealed that the rates of ammonification, nitrification, and denitrification in the sediment with a history of 5 years and 15 years, decreased as the concentration of oxytetracycline increased from 1 to 300, and 2000 mg/kg, and inhibitory effects were found to be less pronounced in sediments with a 5-year history compared to those with a 15-year history. In contrast, oxytetracycline exposure led to a significant decrease in the rates of these processes in aquaculture pond sediments with a >30 years of aquaculture history across all the concentrations tested. The emergence and dissemination of antibiotic resistance profiles in aquaculture environments requires attention in future aquaculture management.