Sundogs are part of a family of atmospheric optical illusions including moon haloes and the closely related sun haloes. All of these phenomena are caused by the refraction of sunlight by ice crystals in the atmosphere.