Treatment for hamstring pain in the elderly includes general treatment, medication, physical therapy, surgery, etc. Different treatments should be taken according to the different causes of hamstring pain. The causes of hamstring pain in the elderly include overwork, tendonitis, osteoporosis and lumbar disc herniation. 1. Excessive exertion: excessive leg activity and exertion (such as mountain climbing) can cause hamstring pain, which should be relieved by resting, doing localized leg rubbing and foot soaking. 2. Tendonitis: leg myofascial pain due to inflammatory stimuli can be relieved by infrared, ultra-short-wave, magnetic therapy and other physical therapy methods, severe pain can be oral non-steroidal anti-inflammatory analgesic drugs (such as ibuprofen, meloxicam, etc.). 3. Osteoporosis: Calcium deficiency in the elderly can cause muscle spasm in the legs leading to hamstring pain, which can be treated with calcium supplements, vitamin D3, more sun exposure, and anti-osteoporosis treatments such as alendronate. 4. Lumbar disc herniation: compression of peripheral nerves causing hamstring pain, treatment includes the application of ibuprofen, meloxicam and other non-steroidal anti-inflammatory and analgesic drugs, traction therapy, physical therapy massage, and if necessary, surgical treatment. Causes of hamstring pain in the elderly may also have other causes, such as lumbar spondylolisthesis, knee osteoarthritis, etc., it is recommended to go to the hospital in a timely manner to find out the cause of the disease after targeted treatment.