Aiming at the conflict of multiple performance indicators in the complex wastewater treatment process (WWTPs), an effective optimization control based on dynamic multi-objective immune (DMOIA-OC) is designed. This method first designs a dynamic optimization control scheme. It also divides the control process into a dynamic optimization layer and a tracking control layer. Secondly, based on analyzing the performance of WWTPs, the optimization layer establishes energy consumption and effluent quality models that adapt to the environment. Thirdly, an adaptive dynamic immune optimization algorithm is proposed to optimize complex and conflicting performance indicators. Besides, a suitable preference solution is selected from many Pareto solutions. It is to obtain the best set values of dissolved oxygen and nitrate nitrogen. Finally, the solution will be tested on the benchmark simulation platform (BSM1). The results show that the DMOIA-OC method can solve the complex optimization problem of multiple performance indicators in WWTPs. And it has a competitive advantage in the control effect.