Moreover, we found that the fecal concentrations of 1, 4-Methylimidazoleacetic acid, and imidazolepropionic acid that were enriched in histidine metabolism were also significantly increased in the miscarriage group and aligned well with the increased IL-17, TNF-α, and IFN-γ in this group. Here, IL17A is linked to spontaneous abortion.