Pain in the back while sleeping is mainly due to the following reasons: 1, because the muscles in the back area are not fully relaxed and rested while sleeping, such as too high a pillow or a cold in the back at night, inflammatory lesions will form locally, and inflammatory metabolites will stimulate the peripheral nerves around them, and painful sensations in the back will occur. 2, is due to ulcers behind the duodenal bulb, which mostly appear in the left back painful sensations. This is due to the fact that when the stomach is empty during sleep, stomach acid tends to stimulate the duodenal ulcer site and the ulcer site pain occurs. The pain in the back is because the back is innervated by the same spinal cord segment as the posterior duodenal bulb, so it is easy to have pain. 3, it may be cholecystitis, mainly manifested as pain in the right back, which is caused by the inflammatory stimulation of the gallbladder.