Emergency lighting is designed to provide sufficient illumination in the event of a mains power failure. Modern emergency lighting is installed in virtually every commercial and high occupancy residential building. Most building codes require that they be installed in older buildings as well.