Semiconductor under illumination produces free electrons and positive holes. These photoproduced charge carriers usually have strong reductive or oxidative forces, and sometimes decompose the semiconductor itself by these forces. This kind of decomposition is easy to take place if the semiconductor has contact with water, that is photocorrosion of semiconductor. This article explains this phenomenon using the concept of the corrosion state, and shows how to prevent the corrosion of semiconductors.