Photochromic lenses are equipped with special molecules that respond to ultraviolet (UV) light. When these lenses are exposed to UV rays, a chemical reaction darkens them. This reaction is reversed when UV light is reduced or absent, allowing the lenses to return to their clear state. This feature provides the convenience of not having to switch between regular glasses and sunglasses based on lighting conditions.