Pain in the thigh muscles when walking is commonly caused by strenuous exercise, sudden muscle strain, or fatigue injury to the muscles. In addition, it is also possible that the pear-shaped muscle syndrome may cause the sciatic nerve to be compressed in the hip, causing pain in the thigh muscles when walking. Therefore, if you have symptoms of thigh muscle pain when walking, you must go to a regular hospital in time to improve the relevant examination and choose the right treatment method after the cause is clear, pay attention to rest, do not have strenuous exercise in the near future, and apply hot compresses locally. If the pain is severe, you can take oral non-steroidal anti-inflammatory and pain-relieving drugs and nerve-nourishing drugs for symptomatic treatment.