Foot and Leg cramps occur involuntarily and are not in our control. They may be caused due to muscle fatigue, dehydration, diabetes, nerve problems, pregnancy, and medications. Applying a heating pad or ice can relax the cramps by easing inflammation. Drinking water regularly or staying hydrated can help to some extent. Getting enough magnesium in your diet is also advisable. Stretching also helps certain times when cramps occur out of nowhere. Apart from that, get a massage, wear comfortable shoes or toe stretchers to treat cramps easily.