In this study, urban wastewater was treated by flocculation, ozone pre-oxidation and denitrification for efficient purification. Polymeric aluminum chloride (PAC) and polymeric aluminum ferric sulfate (PAFS) were added to the wastewater at different levels to remove the COD, turbidity, TP and TN of the wastewater. A better flocculant was selected and its optimum ozone pre-oxidation concentration was determined by changing the ozone concentration and measuring the effluent quality. Denitrification was further enhanced by varying the C/N ratio of the wastewater. The results show that, with the increase in flocculant dosage, the removal rates of COD, turbidity, TP and TN by PAC and PAFS were improved. The purification effect of PAC was better than that of PAFS and the optimum removal of COD, turbidity, TP and TN was obtained at a dosage of 80 mg L−1 by PAC, at 55.9%, 55.6%, 90.0% and 13.3%, respectively. Ozone pre-oxidation enhanced the removal of COD, turbidity and TN by PAC, and the optimal ozone dosage was 1.2 mg L−1, which resulted in 64.8%, 57.1% and 24.8% removal of COD, turbidity and TN, respectively. With the increase in the C/N ratio from 2.0 to 4.0, the NO3−-N concentration of PAC-treated water gradually decreased, but when the C/N ratio was 4.0, the COD concentration increased, so the optimal C/N ratio should be 3.5. Overall, the combination of ozone pre-oxidation, denitrification and flocculation was an effective method to treat urban wastewater, which has a strong application prospect.