At the end of the food pipe (the oesophagus) there is a sphincter which closes after food passes through to prevent stomach contents moving back up towards your mouth. Acid reflux happens when this sphincter relaxes and gastric juices move back into the oesophagus.6