What causes leg cramps at night in diabetics?

Nocturnal leg cramps can occur in diabetic patients due to diabetic peripheral neuropathy and diabetic nephropathy, but nocturnal leg cramps do not necessarily mean that you have diabetic peripheral neuropathy.