Sigmoidoscopy is a diagnostic procedure used to examine the inner lining of the sigmoid colon and rectum. A flexible tube with a light and camera, known as a sigmoidoscope, is inserted through the anus to visualize these areas. This procedure can be crucial in identifying abnormalities such as polyps, tumors, or inflammatory conditions.