Heartburn, that burning sensation in your chest, can be a real problem . Luckily, this medication offers effective relief. This H2 blocker works by lowering the amount of acid your stomach produces. It’s often used to treat recurring heartburn, gastroesophageal reflux disease (GERD), and ulcers.