Our results provide causal evidence indicating the role of the microbiome in intelligence. Our findings may help reshape our understanding of the microbiota-gut-brain axis and development of novel intervention approaches for preventing cognitive impairment.