Leg pain can be seen in ankylosing spondylitis, varicose veins of the lower limbs, thromboembolic vasculitis, etc. It needs to be treated according to the cause of the disease, and the treatments include medication, lifestyle modification, and surgery. There may also be physiological causes, such as excessive exercise, which can be relieved by proper rest. Commonly used medications for ankylosing spondylitis include non-steroidal anti-inflammatory drugs (e.g. diclofenac) and glucocorticoids (e.g. budesonide). Correct bad sitting and standing postures, and do proper physical exercise, but avoid excessive weight bearing and strenuous exercise. Varicose veins of the lower limbs can be protected by compression with elastic bandage or elastic stockings, and in serious cases, surgery can be performed, and standing for a long time should be avoided in normal times. Thromboembolic vasculitis commonly used drugs are clopidogrel, cilostazol, etc. In normal times, we should pay attention to keep warm, avoid cold, moisture and trauma. In addition, there may also be physiological reasons, such as excessive exercise resulting in lactic acid buildup and thus leg pain, which can usually be relieved by proper rest. Leg pain can also have many causes, such as lumbar disc herniation, etc. It is recommended that the patient consult a doctor in a timely manner to clarify the cause of the disease and target treatment. The above drugs must be used under the guidance of a doctor, do not self-medication.