Cimetidine is used for treating and preventing ulcers of the stomach and small intestine, and treating gastroesophageal reflux disease (GERD). It may be used for treating esophagitis (inflammation of the esophagus) caused by acid reflux and certain conditions that cause increased acid secretion.