Leg Cramps At Night?

In most cases, leg cramps have no definate cause. But night leg cramps can sometimes be associated with dehydration, diabetes, muscle fatigue, an electrolyte imbalance or pregnancy. I know when I was pregnant, I had this problem, and they had to give me a muscle relaxer to get it to stop so that i was able to sleep.