The aim of this multicenter prospective, randomized, controlled study is to evaluate whether berberine treatment during and after the perioperative period would reduce the risk of CIN in a high-risk population of patients with both DM and CKD undergoing coronary angiography or noncoronary angiography, and the influence of such potential benefit on short-term outcome.