Background Young patients with type 2 diabetes mellitus (DM) and acute myocardial infarction (AMI) have high long-term all-cause and cardiovascular mortality rates. We aimed to investigate the differentially expressed genes (DEGs) that might be potential targets for DM patients with AMI. Methods Gene datasets GSE775, GSE19322, and GSE97494 were meta-analyzed to obtain DEGs of the left ventricle myocardium in infarcted mice. Gene datasets including GSE3313, GSE10617, and GSE136948 were meta-analyzed to identify DEGs in diabetes mice. A Venn diagram was used to obtain the overlapping DEGs. KEGG and GO pathway analyses were performed, and hub genes were obtained. Pivotal miRNAs were predicted and validated using the miRNA dataset in GSE114695. To investigate the cardiac function of the screened genes, a MI mouse model was constructed; echocardiogram, qPCR, and ELISA of hub genes were performed; ELISA of hub genes in human blood samples was also utilized. Results A total of 67 DEGs were identified, which may be potential biomarkers for patients with DM and AMI. GO and KEGG pathway analyses were performed, which were mainly enriched in response to organic cyclic compound and PI3K-Akt signaling pathway. The expression of PIK3R1 and SPNB2 increased in the MI group and was negatively correlated to left ventricular ejection fraction (LVEF), whereas that of CRYAB decreased and was positively correlated to LVEF. Patients with high CRYAB expression demonstrated a short hospital stay and the area under the curves of the three protein levels before and after treatment were 0.964, 0.982, and 0.918, suggesting that PIK3R1, SPNB2, and CRYAB may be diagnostic and prognostic biomarkers for the diabetes patients with AMI. Conclusion The screened hub genes, PIK3R1, SPNB2, and CRYAB, were validated as credible molecular biomarkers and may provide a novel therapy for diabetic cardiac diseases with increased proteotoxic stress.