R2R3-MYB represents a substantial gene family that plays diverse roles in plant development. In this study, 102 SmR2R3-MYB genes were identified from eggplant fruit and classified into 31 subfamilies. Analysis indicated that segmental duplication events played a pivotal role in the expansion of the SmR2R3-MYB gene family. Furthermore, the prediction of miRNAs targeting SmR2R3-MYB genes revealed that 60 SmR2R3-MYBs are targeted by 57 miRNAs, with specific miRNAs displaying varying numbers of target genes, providing valuable insights into the regulatory functions of miRNAs in plant growth, development, and responses to stress conditions. Through expression profile analysis under various treatment conditions, including low temperature (4 °C), plant hormone (ABA, Abscisic acid), and drought stress (PEG, Polyethylene glycol), diverse and complex regulatory mechanisms governing SmR2R3-MYB gene expression were elucidated. Notably, EGP21875.1 and EGP21874.1 exhibited upregulation in expression under all treatment conditions. Transcriptome and metabolome analyses demonstrated that, apart from anthocyanins (delphinidin-3-O-glucoside, cyanidin-3-O-(6-O-p-coumaroyl)-glucoside, and malvidin-3-O-(6-O-p-coumaroyl)-glucoside), overexpression of SmMYB75 could also elevate the content of various beneficial compounds, such as flavonoids, phenolic acids, and terpenes, in eggplant pulp. This comprehensive study enhances our understanding of SmR2R3-MYB gene functions and provides a strong basis for further research on their roles in regulating anthocyanin synthesis and improving eggplant fruit quality.