design: We intervened in post-weaning diarrhea in piglets with essential oils and collected colon content samples from both the treatment and the control group for metagenome sequencing. We investigated the mechanism of essential oils affecting post-weaning diarrhea.