In order to degrade organic pollutants, a numerical simulation method for the preparation of highly active photocatalytic nanomaterials was proposed. TiO2 nanomaterial samples were prepared by electrochemical anodisation method, and C-240 TiO2 nanomaterial powder samples were obtained. The structure of C-240 samples was analysed by X-ray diffraction. Methyl orange and p-chlorophenol were selected as degradation pollutants. The visible light catalytic activity of C-240 TiO2 nanomaterials was characterised by UV-vis absorption spectrum. According to the UV-vis spectra of C-240 samples and commercial P-25 samples for 60 min of photocatalytic degradation of methyl orange, and the UV-vis spectra of C-240/180 samples for 60 min of photocatalytic degradation of p-chlorophenol under visible light, it was found that C-240 sample had more than 90% photocatalytic degradation of methyl orange, and C-240/180 sample had 66% degradation rate of p-chlorophenol. Compared with commercial P-25, it had higher catalytic degradation performance.