Aims/hypothesis Serum stearic acid (C18:0) is elevated in individuals with hyperlipidaemia and type 2 diabetes. However, the lipotoxicity induced by increased stearic acid in beta cells has not been well described. This study aimed to examine the adverse effects of stearic acid on beta cells and the potential mechanisms through which these are mediated. Methods Three groups of C57BL/6 mice were fed a normal diet or a high-stearic-acid/high-palmitic-acid diet for 24 weeks, respectively. The microRNA (miR) profiles of islets were determined by microarray screening. Islet injury was detected with co-staining using the TUNEL assay and insulin labelling. A lentiviral vector expressing anti-miRNA-34a-5p oligonucleotide (AMO-34a-5p) was injected into mice via an intraductal pancreatic route. Results In both mouse islets and cultured rat insulinoma INS-1 cells, stearic acid exhibited a stronger lipotoxic role than other fatty acids, owing to repression of B cell CLL/ lymphoma 2 (BCL-2) and BCL-2-like 2 (BCL-W) by stearic acid stimulation of miR-34a-5p. The stearic-acid-induced lipotoxicity and reduction in insulin secretion were alleviated by AMO-34a-5p. Further investigations in INS-1 cells revealed that p53 was involved in stearic-acid-induced elevation of miR-34a-5p, owing in part to activation of protein kinaselike endoplasmic reticulum kinase (PERK). Conversely, silencing PERK alleviated stearic-acid-induced p53, miR-34a-5p and lipotoxicity. Conclusions/interpretation These findings provide new insight for understanding the molecular mechanisms underlying not only the deleterious impact of stearic-acid-induced lipotoxicity but also apoptosis in beta cells and progression to type 2 diabetes.