Soreness in the hamstring behind the knee may be caused by excessive exercise, degenerative disease, popliteal cyst compression, lumbar disc herniation and other factors, and the treatment mainly includes conservative treatment and surgical treatment. 1. Excessive exercise: Excessive exercise can produce lactic acid accumulation and cause pain. In the acute stage, you can brake the affected limbs, rest and elevate the affected limbs; after 72 hours, you can choose hot compresses, massage and physical therapy to promote lactic acid discharge to relieve pain. 2. Degenerative diseases: mainly osteoarthritis of the knee joint and osteomalacia and other diseases, which can cause bone and synovial hyperplasia, resulting in pain, you can choose to take oral ibuprofen, meloxicam tablets and other anti-inflammatory drugs to relieve. The above medications should be used under the guidance of a doctor and avoid self-medication. 3. Popliteal cysts: Popliteal cysts can compress the soft tissues around the popliteal fossa, resulting in soreness and pain in the hamstring behind the knee. It can be treated with oral non-steroidal anti-inflammatory drugs such as Loxoprofen sodium. If it affects normal work and life, surgery can be considered to remove the cyst. 4. Lumbar disc herniation: Lumbar disc herniation will compress the nerve root and cause leg pain in the lower limbs. It causes pain in the hamstring behind the knee. Can traction physiotherapy and take ibuprofen and celecoxib and other anti-inflammatory painkillers. If conservative treatment is not effective, surgical intervention can be considered. The main surgical procedures are nucleus pulposus removal and so on. If the symptoms of hamstring pain at the back of the knee are severe, or if the symptoms do not improve, the patient should go to the hospital for treatment.