Nano-Sn0.25Ti0.75O2 was prepared with hydrothermal method using tetrabutyl titanate as one of the primary raw materials. The products were characterized by XRD and SEM, which revealed that the crystal structure of Sn4+-doped nano-TiO2 is rutile, and the nanoparticles diameter was 14.49nm. Photocatalytic treatment the machining wastewater containing cadmium ions with the UV excitation by Nano-Sn0.25Ti0.75O2 was investigated. The experimental results show that Nano-Sn0.25Ti0.75O2 can be used as photocatalyst to removal Cd2+ from the wastewater effectively with the UV excitation. The wastewater pH value, the initial concentration of Cd2+, the amount of catalyst，the reaction time and other factors affect the efficiency of photocatalytic treatment significantly. The optimization experimental conditions for photocatalytic treatment wastewater containing cadmium ions are as follows, when the concentration of Cd2+ in the wastewater is 20mg/L, amount of Sn0.25Ti0.75O2 is 2g/L, pH in wastewater is 7 and the photocatalytic reaction time is 2h, the removal rate of Cd2+ from the wastewater is up to 98.4%.