The Technical Building Code, hereinafter referred to as TBC, promulgated by Royal Decree 314/2006, 17 March 2006, is the regulatory framework governing the basic quality requirements that must be met by buildings, including their installations, in order to comply with the basic safety and habitability regulations defined by Law 38/1999 (known by the Spanish acronym LOE). The Technical Code includes a set of Basic Documents, BD, for complying with the its basic requirements. These documents are to be updated in accordance with technical advancements and social requirements, and shall be approved regularly. Among the various BD is the Basic Energy Saving Document, which aims to obtain a rational use of energy required for buildings, reducing their consumption to sustainable limits, and ensuring that part of this consumption comes from renewable sources of energy, thanks to their design, construction, use and maintenance characteristics. (For more detail, see reference below.) IEA/IRENA Global Renewable Energy Policies and Measures Database © OECD/IEA and IRENA, [November 2020]