The need to reduce CO2 emissions makes it necessary to review most areas of human activity because we are the main source of these emissions. In particular, the building sector is one of its main responsible. Through a State of the Art, several papers published in various scientific journals about nearly Zero Energy Building (nZEB) studies are reviewed. After carrying out an analysis of said documentation, it is considered that a new way of study can be developed with a multidisciplinary approach. For this, another series of articles are analyzed, where different advances in the field of building construction have been developed and are summarized. It is concluded that the Model Predictive Control (MPC) can also be a useful tool to optimize energy consumption in buildings, especially for public use, in order to achieve the goal of achieving nZEB, through the use of Renewable Energy Sources (RES).