Background Clostridioides difficile infection (CDI) is an increasing zoonotic health threat and has also been documented as a cause of enteritis outbreaks in neonatal pigs. Furthermore, CDI in neonatal piglets cause changes in microbial gut colonization. We hypothesized that an imbalanced microbial colonization in piglets with CDI could be associated with an altered abundance of antimicrobial resistance genes.Results We analyzed fecal metagenomic data of lactating sows (S), their piglets during suckling (SP), the same piglets two weeks after weaning (WP), 5-day old artificially reared and formula-fed siblings (FP) and FP infected with C. difficile (FP-CD) for microbiota composition and antimicrobial resistance gene abundance. FP and FP-CD piglets had an immature-type microbiota and increased abundance of antimicrobial resistance genes. A co-occurrence of genes encoding for resistance against aminoglycosides (e.g. aph(3”)-lb, aph(6)-ld, ant(2”)-la), β-lactams (blaCTX−M, blaTEM), fluoroquinolones (pat(A) macrolides (mph(A)), sulfonamides (sul1, sul2), polypeptides (e.g. pmrB, pmrC, arnA, bac(A)) and tetracyclines (e.g. tet(A-D),) was observed. A strong association between Escherichia, Streptococcus, Shigella, Enterococcus and Fusobacterium taxa with the expansion of the resistome in FP and FP-CD piglets were found.Conclusion Increased abundance of antimicrobial resistance genes in formula feeding and concomitant CDI may be associated with therapeutic resistance later in life and warrant further studies.