The occurrence of leg muscle spasm in patients with cerebral infarction is mainly due to the following possibilities: i. Calcium deficiency is the most common phenomenon, which mostly occurs in elderly patients and is not directly related to cerebral infarction itself. Calcium deficiency often leads to nocturnal lower limb gastrocnemius muscle spasm with obvious pain. Bone density examination can be improved to clarify the presence of osteoporosis. Improve the serum electrolyte examination to clarify the presence of low calcium. Calcium can be supplemented with oral calcium vitamin D chewable tablets, two tablets at a time, once a day. Second, upper motor neuron damage occurs after cerebral infarction, resulting in spastic paralysis of the leg muscles. Increased muscle tone is prone to muscle stiffness and pain, which can be treated orally with compound cloxazolazone, ethylprednisolone or baclofen to reduce muscle tone and pain relief symptomatically. Third, it may be the occurrence of partial seizures in the lower extremities, and EEG needs to be improved to clarify the presence of epileptic waves. Seizures manifest as leg convulsions, mostly without obvious pain, unless the convulsions are violent.