Phototherapy uses light applied to the skin to treat eczema. This treatment may use natural sunlight or artificial ultraviolet light. Though effective, long-term light therapy can have harmful effects.