In the present study, we found negative associations between hyodeoxycholic acid, isolithocholic acid, and TXB2, which were significantly decreased in the miscarriage group, with serum cytokines, IL-17, TNF-α, and IFN-γ, and positive associations for chenodeoxycholic acid sulfate, L-Carnitine, acetylcholine, and cholic acid metabolites. The gene discussed is IL17A; the disease is spontaneous abortion.