It was necessary to research an efficient treatment process suitable for township domestic wastewater. In this paper, the performance of the cyclic activated sludge system (CASS) system for simultaneous carbon (C), nitrogen (N) and phosphorus (P) removal was investigated by changing the operation cycle of the CASS reactor. Four operating conditions were set up, T1, T2, T3 and T4, with cycle times of 6, 8, 12 and 8 h (with carbon source), respectively. The results showed that the CASS system had good simultaneous removal of C, N and P. The highest removal rates of COD, TN, NH4+ -N and TP were 87.69, 72.99, 98.60 and 98.38%, respectively, at a cycle time of 8 h. The TN removal rate could be increased to 82.51% after the addition of carbon source. Microbial community analysis showed that Proteobacteria, Bacteroidetes and Candidatus Saccharibacteria were the main phylum-level bacteria. Their presence facilitated the effectiveness of the CASS process for nitrogen removal and phosphorus removal. Functional analysis of genes revealed that the abundance values of genes associated with C, N and P metabolism were higher when the treatment was effective.