The invention relates to a composition containing as active agent ectoine, hydroxyectoine and/or salts, esters or amides of these compounds for use in a method for the treatment and/or prophylaxis of gastroesophageal reflux diseases, inflammation of and damage to the gastric or duodenal mucosa and/or of gastric or duodenal ulcers.