A wastewater treatment system using aerobic granules has a large number of sequencing batch reactor tanks with high volumetric exchange rate, a variable cycle length and constant batch volume. The batch reactors are operated for C, N removal and P is removed chemically, optionally under BioP enhanced conditions. SS are removed in a downstream separation step.