Heartburn typically occurs due to regurgitation of food from the stomach into the food pipe. This can occur only when there is a fault with the sphincter muscle located at the end of oesophagus that opens into the stomach.