The TIF procedure works by creating a valve that prevents the stomach contents from rising into the esophagus.