Drink plenty of fluids, but limit alcohol and caffeine. Stretch leg muscles or ride a stationary bicycle for a few minutes before bedtime. Loosen the sheets and covers at the foot of the bed. To relieve night leg cramps, try to: Stretch the leg and flex the foot up toward the face. Massage the muscle with ice. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.