Back pain at night when you sleep and get up will be fine, may be due to improper sleeping posture, ankylosing spondylitis, chronic lumbar strain and other factors, can be relieved by localized hot compresses, medication and other ways. 1. Improper sleeping position: when a long time to maintain an inappropriate sleeping position, will cause excessive fatigue of the back muscles and tissues, thus leading to back pain symptoms, it is recommended to sleep to adjust the sleeping position, you can use a warm water bag hot compresses, increase the temperature of the situation, relaxation of the muscles and so on for relief. 2. Ankylosing spondylitis: Ankylosing spondylitis will invade the spine and many joints of the whole body, resulting in pain in the lower back, accompanied by pain and stiffness in the lower back or buttocks, etc., which may lead to pain in the back at night, and it will be gradually relieved after a period of time of activity after getting up. Medications such as meloxicam and diclofenac can be used under medical supervision for relief. 3. Chronic lumbar muscle strain: mainly caused by a long time in one position, as well as overwork caused by the lumbar muscle fiber damage. Sleeping at night and repeating a position all the time will cause pain in the back, and the pain will be significantly reduced with the movement of the body after getting up. You can use etoricoxib, celecoxib and other drugs under the guidance of the doctor to relieve the treatment. Patients with severe back pain, but also need to consult a doctor for symptomatic treatment, in addition to recommending that patients avoid excessive exertion, pay more attention to rest and so on.