Confocal microscopy employs a laser to illuminate a single point in the sample, and a pinhole aperture in front of the detector to eliminate out-of-focus light. This results in a sharp image with enhanced resolution and contrast. By scanning the laser across the sample and collecting data point-by-point, a three-dimensional reconstruction of the tissue can be created. This technique is particularly useful for thick tissues where traditional microscopy would fail to provide clear images.