A system for illuminating a sample in situ with visible and ultraviolet light inside a transmission electron microscope was devised to study photocatalysts. There are many mechanical and optical factors that must be considered when designing and building such a system. Some of the restrictions posed by the electron microscope column are significant, and care must be taken not to degrade the microscope's electron-optical performance or to unduly restrict the other capabilities of the microscope. We discuss the nature of the design considerations, as well as the practical implementation and characterization of a solution. The system that has been added to an environmental transmission electron microscope includes a high brightness broadband light source with optical filters, a fiber to guide the light to the sample, and a mechanism for precisely aligning the fiber tip.