Erectile dysfunction (ED) is a common comorbidity in males with diabetes. In this study, we aimed to investigate how IncRNA-MIAT affects ED in diabetes and the involved mechanism. Microarray analysis was performed to screen ED-related differentially expressed genes, regulatory microRNA (miR) and long noncoding RNA (IncRNA). Highly expressed lipoprotein lipase (LPL) was identified, and subsequently miR-328a-5p and IncRNAMIAT were determined. Diabetes was induced by streptozotocin in rats, and diabetic rats with ED were selected. Vascular smooth muscle cells (VSMCs) and vascular endothelial cells (VECs) were cocultured. The siRNA against IncRNA-MIAT, miR-328a-5p mimic and overexpression vector of LPL were transfected to investigate the specific effects of miR-328a-5p, IncRNA-MIAT and LPL on ED in diabetes. The expression of LPL, IncRNA-MIAT and miR328a-5p in the serum of diabetic patients was measured. Increased LPL and IncRNA-MIAT and reduced miR328a-5p were observed in diabetic patients. In addition, ED led to upregulated LPL and IncRNA-MIAT and downregulated miR-328a-5p in serum of diabetic patients and VSMCs of diabetic rats, especially in those with ED. LncRNA-MIAT directly regulated miR-328a-5p, which directly targeted LPL. LncRNA-MIAT upregulated LPL by acting as a ceRNA of miR-328a-5p. Silencing of IncRNA-MIAT and LPL or miR-328a-5p overexpression reduced VEC apoptosis and increased cell proliferation. In addition, an increased intracavemosal pressure (ICP)/ mean arterial pressure (MAP) ratio was noted in the corpus cavemosum of rats and inhibited VEC injury. Taken together, our data demonstrated that depleted IncRNA-MIAT suppressed LPL by increasing miR-328a-5p, thereby inhibiting VEC injury to attenuate ED in diabetic rats.