Cramps are a sign of muscle spasms. Painful nighttime foot spasms may be influenced by physiologic factors or may be a sign of a condition such as hypocalcemia. Muscle cramps at night may be caused by too much leg exercise or exertion during the day, resulting in prolonged muscle tension and excessive accumulation of lactic acid. At the same time, it may also be due to cold legs at night, cold stimulation leads to vasoconstriction, blood flow is not smooth, resulting in muscle spasms. It is recommended to rest for some time and pay attention to keep your legs warm at night. Hypocalcemia also has the symptom of muscle spasm at night. Most pregnant women, teenagers during the growing period may lead to hypocalcemia due to untimely calcium supplementation in the body, and older people have low ability to absorb calcium. Low calcium levels make muscle cells easily stimulated and excited, so the symptoms of nocturnal muscle spasms will occur. Patients are advised to ensure calcium intake. Foot cramps at night may be caused by excessive exercise, cold legs at night, or hypocalcemia. If the frequency of foot cramps at night is high or the pain is severe, it is necessary to go to the hospital in time for symptomatic treatment.