Suddenly waking up from sleep and walking with pain in the whole leg may be caused by hamstring fasciitis, rheumatoid arthritis, lumbar disc herniation, ankylosing spondylitis and so on. 1. Fasciitis of the leg: it may be due to cold legs, overwork during the day, etc., resulting in chronic aseptic inflammation of the fascia of the leg, and the phenomenon of waking up from a sudden sleep and walking with pain in the whole leg. 2. Rheumatoid arthritis: Suddenly waking up from sleep and walking with pain in the whole leg may be related to autoimmune, hereditary, infectious, smoking and other factors, resulting in rheumatoid arthritis, the main symptom of joint pain, commonly found in the knee joints and so on. 3. Lumbar disc herniation: it may be caused by disc degeneration, long-term head-down and stooping activities and other bad lifestyle, resulting in lumbar disc herniation, whose main symptoms are lower back pain and low back pain. 4. Ankylosing spondylitis: it may be related to multiple factors such as heredity, infection, environment, immunity, etc., resulting in ankylosing spondylitis, whose typical symptom is lower back pain, which may also be accompanied by symptoms of neurological lesions, such as cauda equina syndrome, with radiating pain in the legs. Suddenly waking up from sleep and walking the whole leg pain may also have other reasons, it is recommended to go to the regular hospital in time to improve the relevant examination, clear the cause of the disease, under the guidance of the doctor to carry out targeted treatment or treatment.