We recruited patients with a history of symptomatic GERD within 3 months and GERD-related sleep disturbances. All patients received an endoscopy within 1 month. They were enrolled if erosive esophagitis was present. Patients were excluded for the following: unable to undergo upper endoscopy; unable to write daily symptom diaries; presence of esophageal stricture, peptic ulcer obstruction, esophageal varices, Barrett’s esophagus, eosinophilic esophagitis, active peptic ulcer, or bleeding during endoscopy; symptoms of primary or secondary esophageal movement disorders; planning to perform surgery or history of receiving surgery that could affect gastric acid secretion (ie, upper gastrectomy, vagotomy, etc); diagnosed with functional dyspepsia, primary esophageal motility disorder, irritable bowel syndrome, or inflammatory bowel disease within 3 months; any condition other than GERD that could be the primary cause of sleep disturbance; known hypersensitivity to antacids, proton pump inhibitors (PPIs) and PCABs; history of malignancy within 3 years; coexisting diseases; pregnancy or lactation; nightshift work; history of alcohol or drug abuse; anticipated travel beyond 3 time zones; human immunodeficiency virus; use of PPI 14 days before enrollment; unable to discontinue sleep medication, anti-depressants, or anti-anxiety medication during the study period; or at investigator’s discretion. All patients underwent a physical examination, including vital signs, body weight, and routine laboratory evaluation.