Acidity causes gas. This acid is produced by the glands of the stomach.