In our study, we found that EphB6 is functionally associated with ASD and regulates autism-like social behavior by gut microbiota-mediated vitamin B6 and dopamine. Here, EPHB6 is linked to autism.