Microalgal-bacterial consortium is an effective way to meet increasingly stringent standards in wastewater treatment. However, the mechanism of wastewater removal effect has not been properly explained in community structure by phycosphere. And little is known about that the concept of macroecology was introduced into phycosphere to explain the phenomenon. In the study, the algal–bacterial consortia with different ratios of algae and sludge were cultured in same aerobic wastewater within 48 h in photobioreactors (PSBRs). Community structure at start and end was texted by metagenomic analysis. Bray–Curtis similarities analysis based on microbial community showed that there was obvious convergent succession in all consortia, which is well known as “convergence” in macroecology. The result showed that Bray–Curtis similarities at End (overall above 0.88) were higher than these at Start (almost less than 0.66). In terms of community structure, the consortium with 5:1 ratio at Start are the more similar with the consortia at End by which the maximum removal of total dissolved nitrogen (TDN, 73.69%), total dissolved phosphorus (TDP, 94.40%) and NH3-N (93.26%) in wastewater treatment process and biomass production (98.2%) higher than other consortia, according with climax community in macroecology with the highest resource utilization than other communities. Therefore, the macroecology can be introduced into phycosphere to explain the consortium for advanced wastewater treatment and optimization community structure. And the study revealed a novel insight into treatment effect and community structure of algal–bacterial consortia for advanced wastewater treatment, a new idea for to shortening the culture time of consortium and optimize predicting their ecological community structure and predicting ecological community.