In still photography and video, a matte box is a device used on the end of a lens to block the sun or other light source in order to prevent glare and lens flare. It performs essentially the same function as a lens hood and also mounts in front of the lens, but usually includes adjustable fins called French flags.