Vermiremediation, using earthworms to remove contaminants from soil is proved to be an alternative, low-cost technology. However, the impacts of earthworm activity on the fate of sulfamethoxazole (SMX), especially the degraders in earthworm intestine and the effects of intestinal bacteria on external soil degrading bacteria were still unclear. In this study, the effect of earthworms on the fate of SMX and related antibiotic resistance genes (ARGs) were investigated. Special attention was focused on the impacts of earthworms on SMX degradation efficiencies, degradation products, related ARGs and degraders in both soil and earthworm intestine, and the effect of intestinal bacteria on external soil bacteria associated with SMX was also studied. Results showed that earthworms significantly accelerated SMX degradation by both intestinal detoxification and stimulation of soil indigenous degraders. Compared with the treatment without earthworms, the residues of SMX in the treatment with earthworms were reduced by 25.1%, 49.2%, 35.7%, 34.2, and 35.7% in the 10th, 20th, 30th, 60th, and 90th day, respectively. Compared with the soil (treated with earthworms), the residues of SMX in wormcasts were further reduced by 12.2%-29.0% during the 2th to 20th day along with the formation of some metabolites which were distinct from soil. In earthworm intestine, the SMX degradation was enhanced by Microvirga, Sphingomonas, Methylobacterium, Bacillus, and Tumebacillus. Meanwhile, all of them (except Bacillus) entered and colonized the soil with wormcasts, further promoting SMX degradation. Additionally, the earthworms significantly removed the ARGs through increasing the potential SMX degraders and inhibiting the potential hosts of ARGs and int1. Our study implied that earthworm could remediate the SMX-contaminated soil via enhancing the removal of SMX and ARGs.