These results suggest that cefaclor may suppress BDNF and serotonin expression through gut microbiota-mediated blood circulation and vagus nerve pathways, resulting in the occurrence of anxiety and depression. Here, BDNF is linked to depressive symptom measurement.