Confocal microscopy offers several advantages over traditional light microscopy. By using a pinhole to eliminate out-of-focus light, it provides sharper images and better optical sectioning. This allows for the collection of three-dimensional data sets through the reconstruction of serial optical sections, enabling detailed analysis of complex tissue structures.