Digested residues from biogas plants are often used as biofertilizers for agricultural crops cultivation. The antibiotic resistance genes (ARGs) in digested residues pose a high risk to public health due to their potential spread to the disease-causing microorganisms and thus reduce the susceptibility of disease-causing microorganisms to antibiotics in medical treatment. A high-throughput sequencing (HTS)-based metagenomic approach was used in the present study to investigate the variations of ARGs in full-scale biogas reactors and the correlations of ARGs with microbial communities and metal resistance genes (MRGs). The total abundance of ARGs in all the samples varied from 7 × 10-3 to 1.08 × 10-1 copy of ARG/copy of 16S-rRNA gene, and the samples obtained from thermophilic biogas reactors had a lower total abundance of ARGs, indicating the superiority of thermophilic anaerobic digestion for ARGs removal. ARGs in all the samples were composed of 175 ARG subtypes; however, only 7 ARG subtypes were shared by all the samples. Principal component analysis and canonical correspondence analysis clustered the samples into three groups (samples from manure-based mesophilic reactors, manure-based thermophilic reactors, and sludge-based mesophilic reactors), and substrate, temperature, and hydraulic retention time (HRT) as well as volatile fatty acids (VFAs) were identified as crucial environmental variables affecting the ARGs compositions. Procrustes analysis revealed microbial community composition was the determinant of ARGs composition in biogas reactors, and there was also a significant correlation between ARGs composition and MRGs composition. Network analysis further revealed the co-occurrence of ARGs with specific microorganisms and MRGs.