The common causes of stomach pain from 1am to 3am include improper diet, duodenal ulcer, perforated gastric ulcer, etc. Different treatments need to be chosen according to different causes. 1. Improper diet: improper diet before going to bed, such as overeating, eating spicy and stimulating food, resulting in stomach pain in the middle of the night, you should pay attention to light, regular diet, do not overeating. 3. Duodenal ulcer: patients with flat more hunger pain, pain at night, oral proton pump inhibitors, such as omeprazole, lansoprazole to inhibit the secretion of digestive juices, reduce pain. 4. Gastric ulcer perforation: sudden onset of severe abdominal pain, starting from the right upper abdomen or middle-upper abdomen, continuous and rapid spread to the whole abdomen, abdominal pain is severe and bedridden, legs curled up and unwilling to move. Surgery is required. Stomach pain aggravated from 1:00 am to 3:00 am without relief, it is recommended to go to the hospital in time to improve the examination to clarify the cause of the disease, and then give targeted treatment or treatment. Please do not take medication on your own to avoid delaying your condition.