Background : Melatonin has been widely used as a "probiotic agent" capable of producing strong neurotransmitter secretion regulatory effects. In the present study, a zebrafish neural hyperactivity model was established using caffeine induction, and the regulation and mechanism of melatonin and probiotic on zebrafish neurotransmitter secretion disorder were explored. Results : Disorders of brain neurotransmitter secretion caused by caffeine, including that of dopamine (DA), γ-aminobutyric acid (γ-GABA), and 5-hydroxytryptamine (5-HT), were improved after interference treatment with melatonin or the probiotic. Metagenomic sequencing demonstrated that the melatonin-treated zebrafish gradually restored their normal intestinal microbial structure, while probiotic supplementation may restructure a new microbiome. Additionally, supplementation with melatonin significantly regulated intestinal microbial functional features. Based on this activity, we supposed that gut microbes play an essential role in the regulation of neurotransmitter secretion disorder via a process that involves melatonin. Germ-free (GF) zebrafish were used to verify the hypotheses. Validation experiment results revealed that the effect on the zebrafish in the GF group could not achieve that on the zebrafish in the melatonin group after adding the same dose of melatonin, and subsequent real-time PCR and metabolic pathway analysis confirmed the conclusion. Meanwhile, the content of acetic acid and propionic acid in the zebrafish gut decreased after caffeine induction and increased significantly after melatonin treatment. Conclusions : In the present research, we identified the potential mechanism of melatonin regulation of neurotransmitter secretion disorder through the gut-brain axis, laying a foundation for exploring the prevention and treatment of some neuropsychiatric disorders by improving the intestinal microbiota.