The effects of ultraviolet (UV) irradiation on the electrical property of polyaniline (PANI) have been researched in this study. Spectroscopic methods [Raman spectroscopy (532 nm excitation) and x-ray photoelectron spectroscopy] and electrical conductivity measurements were used to characterize the conducting polymer PANI with and without UV irradiation. The authors found that UV irradiation could lead to degenerating electrical conductivity of PANI, resulting from an increase in the surface band bending and a reduction in the work function.