The first thing to do is to go to the hospital to check for internal diseases, such as cardiovascular diseases, cerebral hemorrhage, cerebral infarction and myocardial infarction of the heart, etc., and to treat the cause. We should also check for hypocalcemia, and actively take calcium supplements, inject calcium gluconate injection, etc. If there is no problem, it may be a muscle spasm caused by a long time in one position, or a muscle spasm caused by strenuous exercise. First of all, we should pay attention to rest, keep warm to avoid getting cold, correct body posture, avoid prolonged one posture, elevate the affected limb to avoid excessive drooping. You can apply local heat and massage gently to avoid violence. Take oral medication to relieve muscle spasm, such as ethylprednisolone hydrochloride. In addition, if necessary, local massage, acupuncture and moxibustion can be performed. Also rule out thigh cramps caused by nerve compression due to lumbar disc herniation. Treatment should be done by bed rest, hard bed, mannitol to reduce swelling, and oral anti-inflammatory and analgesic drugs, such as loxoprofen sodium and nerve-nourishing methylcobalamin capsules. If conservative treatment is not effective and the symptoms gradually worsen, surgical treatment is required. For the thigh muscle spasm caused by lumbar disc herniation is not required to massage, massage may make the condition worse.