Hamstring pain is treated depending on the cause. Common causes are overstrain, inflammation and lumbar disc herniation. The main treatment methods are rest and braking, local braking, acupuncture, physical therapy, traction, massage, medication and surgery. 1. Overstrain: When muscle strain is caused by prolonged and strenuous leg exercise, the hamstring muscle will be painful, at this time, it is necessary to immediately rest, local braking, and at the same time, with anti-inflammatory drugs such as ibuprofen, aspirin, etc. for treatment. 2. Inflammation: When inflammation occurs in the hamstring muscle, there will be localized swelling and pain, at this time, you can use non-steroidal anti-inflammatory drugs such as nimesulide, meloxicam and other anti-inflammatory drugs to alleviate the pain, and at the same time with physical therapy, massage and other symptoms. 3. Lumbar disc herniation: when the lumbar disc herniation compresses the nerves, there will be pain in the lower limbs, which can be relieved by acupuncture, physical therapy, traction, massage, etc., and in severe cases, surgical treatment is needed. Popliteal pain may also have other causes such as cold, etc. It is recommended to consult a doctor in time to identify the cause of the disease and then carry out targeted treatment. The above medications should be taken in accordance with medical advice.