Beyond diagnosis, endoscopy is also used in the treatment of certain cancers. For instance, it can be employed to remove polyps during a colonoscopy, perform laser therapy to destroy cancerous tissue, or place stents to relieve obstructions. These minimally invasive treatments can often be done on an outpatient basis, reducing hospital stay and recovery time.