Foot/leg cramps

Ruling out dehydration from pulling off too much fluid on txs, what are other causes for foot/let cramps that occur while asleep at night?