IntroductionMelatonin (MEL) is a crucial neuroendocrine hormone primarily produced by the pineal gland. Pinealectomy (PINX) has been performed on an endogenous MEL deficiency model to investigate the functions of pineal MEL and its relationship with various diseases. However, the effect of PINX on the gastrointestinal tract (GIT) MEL levels and gut microbiome in pigs has not been previously reported.MethodsBy using a newly established pig PINX model, we detected the levels of MEL in the GIT by liquid chromatography–tandem mass spectrometry. In addition, we examined the effects of PINX on the expression of MEL synthesis enzymes, intestinal histomorphology, and the intestinal barrier. Furthermore, 16S rRNA sequencing was performed to analyze the colonic microbiome.ResultsPINX reduced serum MEL levels but did not affect GIT MEL levels. Conversely, MEL supplementation increased MEL levels in the GIT and intestinal contents. Neither PINX nor MEL supplementation had any effect on weight gain, organ coefficient, serum biochemical indexes, or MEL synthetase arylalkylamine N-acetyltransferase (AANAT) expression in the duodenum, ileum, and colon. Furthermore, no significant differences were observed in the intestinal morphology or intestinal mucosal barrier function due to the treatments. Additionally, 16S rRNA sequencing revealed that PINX had no significant impact on the composition of the intestinal microbiota. Nevertheless, MEL supplementation decreased the abundance of Fibrobacterota and increased the abundance of Actinobacteriota, Desulfobacterota, and Chloroflexi.ConclusionWe demonstrated that synthesis of MEL in the GIT is independent of the pineal gland. PINX had no influence on intestinal MEL level and microbiota composition in pigs, while exogenous MEL alters the structure of the gut microbiota.