Persistent stomach pain overnight may be caused by dietary factors, acute gastroenteritis, peptic ulcer, acute pancreatitis and so on. 1. Dietary factors: overeating at dinner or eating too much spicy food, drinking a lot of alcohol, etc., can cause increased burden on the gastrointestinal tract, mucosal damage, etc., resulting in persistent stomach pain, can be given domperidone, pepsin granules and other treatments. 2. Acute gastroenteritis: Eating unhygienic food triggers acute gastrointestinal inflammation, which can lead to persistent stomach pain, usually accompanied by diarrhea, vomiting and other symptoms. Use levofloxacin and rifaximin as prescribed by the doctor. 3. Peptic ulcer: there is an ulcerated surface of the gastric mucosa, under the stimulation of factors such as staying up all night, the secretion of gastric acid will increase, and the stimulation of gastric acid will lead to persistent stomach pain, accompanied by acid reflux, nausea, heartburn and other discomforts. 4. Acute pancreatitis: Acute inflammation of the pancreas causes epigastric pain, which can be mistaken for stomach pain, pain can be manifested in the back and lumbar pain, can also be accompanied by nausea, vomiting and other symptoms, it is recommended to consult a doctor in a timely manner. Persistent stomach pain overnight may also be perforation of the stomach and other factors, it is recommended to consult a doctor in a timely manner to identify the cause of early treatment.