It's an optical phenomenon caused by the refraction and reflection of sunlight through ice crystals in the atmosphere.