Weaning is undoubtedly one of the most crucial stages in the growth and development of all mammalian animals, including donkey foals. Weaning is a dynamic and coordinated process of the body, which is closely associated with the health, nutrition, and metabolism of the host. Many studies have shown that the intestinal microbiota and serum metabolites of mammals exhibit different changes during lactation, weaning, and postweaning. However, the alterations in serum metabolites in donkey foals before and postweaning and the correlation between serum metabolites and intestinal microbiota are largely unknown. This study is based on the fecal 16S rRNA and serum metabolomes of Dezhou donkey foals. In total, 10 samples (fecal and serum) were collected during the following three stages: before weaning (F.M.1), during weaning (F.M.3), and postweaning (F.M.6). To study the alterations in intestinal microflora, serum metabolites, and their correlation before and postweaning. We found that with the growth and weaning progress of donkey foals, the intestinal microbiota of donkey foals underwent obvious changes, and the diversity of fecal bacteria increased (Chao1 and Shannon indexes). The main intestinal microbial flora of donkey foals include Bacteroides and Firmicutes. We found many microbiota that are associated with immunity and digestion in the postweaning group, such as Verrucomicrobiales, Clostridia, Oscillospiraceae, Akkermansia, and Rikenellaceae, which can be considered microbial markers for the transition from liquid milk to solid pellet feed. Clostridia and Oscillospiraceae can produce organic acids, including butyric acid and acetic acid, which are crucial for regulating the intestinal microecological balance of donkeys. Furthermore, the metabolome showed that the serum metabolites enriched before and postweaning were mainly related to arachidonic acid metabolism and riboflavin metabolism. Riboflavin was associated with the development of the small intestine and affected the absorption of the small intestine. We also found that the changes in the gut microbiome of the foals were significantly correlated with changes in serum metabolites, including lysophosphatidylcholine (LPC; 12,0) and positively correlated with Lachnoclostridium and Roseburia. To summarize, this study provides theoretical data for the changes in the intestinal microbiome and serum metabolism during the entire weaning period of donkey foals.