Pre-competition anxiety was linked to Oscillospiraceae UCG_005, Paraprevotella, Ruminococcaceae and TM7x. (3) The functions of differential metabolites in faeces and urine of the CP/CnP group were mainly enriched in caffeine metabolism, lipopolysaccharide biosynthesis and VEGF and mTOR signaling pathways. The gene discussed is CP; the disease is Anxiety.