Contrast-induced nephropathy (CIN) after coronary angiography is frequently observed in patients with chronic renal insufficiency and no effective measures have been developed for prevention of CIN. There is evidence showing that trimetazidine (TMZ) has renoprotective effect on CIN. This study was to evaluate the role of TMZ in the prevention of CIN in renal dysfunction patients undergoing coronary angiography. A total of 132 patients with renal dysfunction who underwent coronary angiography were enrolled in our study and divided into control group (n = 70) and TMZ group (n = 62). Standard hydration was administered in all the patients. In TMZ group, patients were administered TMZ orally for 48 hours before and 24 hours after coronary angiography. Serum creatinine (SCr) and cystatin (CysC) were detected before and after contrast media injection, and the incidence of CIN was evaluated according to the elevation of SCr. Adverse events were observed in 12 months. In both groups, CysC and SCr increased significantly after coronary angiography and peaked at 24 and 48 hours, respectively. CysC and SCr were significantly lower in TMZ group than in control group after coronary angiography. The incidence of CIN and adverse events was reduced in TMZ group when compared with control group (P = 0.034 and P = 0.043, respectively). TMZ in combination with standard hydration is more effective than isotonic saline alone in protecting renal function in patients with renal dysfunction who undergo coronary angiography and can reduce the adverse events within 12 months.