Alcohol can relax the lower esophageal sphincter (LES), the muscle that prevents stomach acid from flowing back up into the esophagus, and can also cause the stomach to produce more acid. Both of these effects can lead to heartburn.