Pain and discomfort in the thigh in the middle of the night may be due to the presence of osteomyelitis, osteosarcoma, bone cysts and other lesions, as well as other causes. You can go to the hospital in time to see the doctor, the doctor combined with the preliminary judgment of physical examination, pay attention to observe the local redness, swelling, abnormal masses, as well as the temperature of the body has no fever, which helps to assist in determining the condition, routine perfect thigh X-rays, if necessary, combined with magnetic resonance imaging accurately determine the condition. If the pain is caused by osteomyelitis, you can choose meloxicam tablets for pain relief, in addition to timely anti-infection treatment such as levofloxacin. In case of severe osteomyelitis, surgery is required if necessary. If the pain is caused by osteosarcoma, surgery is required along with chemotherapy and other comprehensive treatment, and if it is a bone cyst, local surgery is usually performed to remove it, which helps in recovery.