Leg cramps have various causes, including dehydration and mineral deficiencies. You can often treat them with hydration and proper stretching.
Source: Health
Highlands Podiatry, Foot and Ankle Care, Bristol // Media // Healthcare News » 13 Causes of Leg Cramps and Their Treatments