||In this work, we discuss the application of multivariable predictive control for the activated sludge pro- cess in a full-scale municipal wastewater treatment plant. Emphasis is given to the selection of a control configuration that contributes to minimising the economic costs while improving the removal efficiency of the nitrogen compounds. For this task, a simple dynamic matrix control algorithm is favoured for con- trolling the nitrogen concentrations at the end of the biological process. The behaviour of the activated sludge process is reproduced in a commercial simulator that acts as a real-time testing platform and that is also used for identifying the multivariable input–output models for the predictive controller. For demon- strating the effectiveness of the proposed approach, different control configurations are considered and compared against the aeration control strategies currently used at the plant. Based on the simulation results, this work shows the potentiality of the dynamic matrix control which is able to decrease the energy consumption costs and, at the same time, reduce the ammonia peaks and nitrate concentration in the effluent.