Eczema is a type of inflammation, and the sun provides an anti-inflammatory effect — it’s the ultra-violet (UV) rays that may help improve eczema. The science behind this concept is phototherapy, which is used to minimize flare-ups.