A percutaneous endoscopic gastrostomy (PEG) is a surgery to place a feeding tube. Feeding tubes, or PEG tubes, allow you to receive nutrition through your stomach. You may need a PEG tube if you have difficulty swallowing or can't get all the nutrition you need by mouth.