This study highlights the differences in the metabolomes of cow milk yoghurt (CY) and goat milk yoghurt (GY) using a nuclear magnetic resonance (NMR)-based metabolomic approach. The 1H HRMAS-NMR spectrum displayed 21 metabolites comprising organic acids, sugars, amino acids, amino acid derivatives and phospholipids. The orthogonal partial least squares discriminant analysis model clearly separated CY and GY groups, implying differences in metabolite composition. The corresponding Variable Importance in Projection (VIP) plot revealed that choline, sn-glycero-3-phosphocholine, O-phosphocholine, fucose, citrate, sucrose, glucose and lactose mainly contributed to the group separation (VIP > 1). Hierarchical cluster analysis further confirmed the metabolome similarities and differences between CY and GY. Additionally, 12 significantly differential metabolites (with a fold change > 1.5 and p-value < 0.05) were identified, with 1 downregulated and 11 upregulated. Pathway impact analysis revealed the correlation of significant metabolites with starch and sucrose metabolism, galactose metabolism, and the citrate cycle. Furthermore, receiver operating characteristic curve analysis identified eight metabolites (choline, sn-glycero-3-phosphocholine, fucose, O-phosphocholine, glucose, citrate, 2-oxoglutarate, lactose and sucrose) as candidate biomarkers. This study represents the first utilization of HRMAS-NMR to analyze the metabolomic profiles of yoghurt made from cow and goat milk. In conclusion, these findings provide preliminary information on how NMR-based metabolomics can discriminate the metabolomes of yoghurt prepared from the milk of two different animals, which may be valuable for authenticity and adulteration assessments.