Biogas in Spain has no single law: the framework is a mosaic of plans (PNIEC, the Biogas Roadmap), royal decrees (Royal Decree 1051/2022 on sustainable nutrition, Royal Decree 1528/2012 on animal by-products) and directly applicable European legislation (Regulation EU 1069/2009 on animal by-products). The PNIEC 2023-2030 sets a target of 20 TWh of biogas in 2030 (double the 10.41 TWh minimum of the Roadmap) and Spain has around 270 biogas plants and 14 biomethane plants. This article is the map: which rule applies to each aspect of the plant (substrates, digestate, emissions, remuneration) and where to check it.
Anyone searching for «the biogas law» in Spain will not find it, because it does not exist. What there is is a set of rules of different rank (European, national and regional) that each regulate one piece of the plant: which substrates it can receive, what it does with the digestate, what it emits through the stack and how it gets paid for the energy.
That mosaic also changes very frequently, so it is worth having the map clear and knowing the official sources where the current version of each piece can be checked.
This article organises the framework as of today: the plans that set targets, the royal decrees that impose obligations and the directly applicable European regulations.
General regulatory framework for biogas in Spain
The framework is best understood in layers: at the top, European legislation (renewable energy directives and directly applicable regulations such as the animal by-products one); in the middle, the national plans that set targets (PNIEC, the Biogas Roadmap); and at the bottom, the royal decrees that impose specific obligations and the regional permitting and environmental rules.
This table summarises which rule affects each aspect of a plant:
| Rule or plan | What it regulates | What it affects in the plant |
|---|---|---|
| Biogas Roadmap (IDAE, 2022) | National strategy for the sector | Planning, grants and guarantees of origin |
| PNIEC 2023-2030 | Energy and climate targets | Target framework (20 TWh of biogas in 2030) |
| Royal Decree 1051/2022 | Sustainable nutrition of agricultural soils | Land application of digestate |
| Regulation EU 1069/2009 + Royal Decree 1528/2012 | Animal by-products | Substrates of animal origin and digestate |
| Royal Decree 1042/2017 | Emissions from medium combustion plants | Cogeneration engines |
| Royal Decree 413/2014 | Remuneration regime for renewables and cogeneration | Sale of electricity |
The Biogas Roadmap (IDAE)
Approved in March 2022, it is the strategic document for the sector: it assesses the Spanish potential, sets the growth path and deploys 45 measures (guarantees of origin, investment support, administrative simplification, promotion of biomethane).
Its practical relevance for a plant lies in the grant lines it activates and in the system of guarantees of origin for renewable gases, which makes it possible to certify and sell the renewable attribute of biogas and biomethane.
The National Integrated Energy and Climate Plan (PNIEC)
The PNIEC is the plan Spain submits to Brussels with its energy and climate targets. Its 2023-2030 update, approved in 2024, sets a target of 20 TWh of biogas in 2030: double the 10.41 TWh minimum set by the Biogas Roadmap.
With around 270 biogas plants and 14 biomethane plants (European Biogas Association data, 2024), Spain is far from its potential (compare with the more than 9,000 in Germany), which explains the regulatory push and the grant lines of recent years. For a plant, the PNIEC imposes no direct obligations: it signals the direction of the regulatory wind and of the subsidies.
Royal Decree 1051/2022 on sustainable nutrition
Royal Decree 1051/2022, of 27 December 2022, establishes the rules for sustainable nutrition of agricultural soils. It fully affects the agronomic use of digestate: it regulates how, when and how much can be applied to the land, requires fertilisation plans and advice, and restricts the most emitting application techniques.
For a biogas plant, it is the rule that conditions the agricultural use of digestate: it requires the digestate to be characterised, dosed according to crop needs and its applications to be recorded. This is a key point and it tends to affect many plants negatively.
Regulation EU 1069/2009 (animal by-products)
Regulation EU 1069/2009 is directly applicable and regulates animal by-products not intended for human consumption: slurries, slaughterhouse waste, food industry residues of animal origin. If the digester receives any of them, the plant needs an animal by-products authorisation and the digestate inherits treatment and traceability obligations.
In Spain it is implemented by Royal Decree 1528/2012. The categories, hygienisation requirements and use routes are covered in detail in the post on digestate and animal by-products regulation.
Air emissions regulation
Biogas cogeneration engines are subject to Royal Decree 1042/2017, which transposes the European directive on medium combustion plants (1-50 MW thermal): registration of the plant, emission limits (NOx, SO₂, particulates) and periodic measurements.
Added to this, depending on size and activity, are the rules on integrated pollution prevention and control (integrated environmental authorisation) and regional bylaws. The limit values and measurement deadlines are covered in the post on cogeneration emission limits.
Remuneration regime for electricity generation
Electricity from biogas is paid for in two ways: the market (direct sale or PPA) and, for plants that have it recognised, the specific remuneration regime of Royal Decree 413/2014 (the RECORE framework) or the renewable energy economic regime awarded by auction.
The growing alternative to cogeneration is upgrading to biomethane and its grid injection, which requires meeting the quality specification of the EN 16723 standard and the detailed protocol of the gas grid.
Frequently asked questions about biogas regulation in Spain
What regulation governs biogas in Spain?
There is no single law: the framework combines national plans (PNIEC and the Biogas Roadmap), royal decrees that impose specific obligations (Royal Decree 1051/2022 for land application of digestate, Royal Decree 1528/2012 for animal by-products, Royal Decree 1042/2017 for emissions, Royal Decree 413/2014 for electricity remuneration) and directly applicable European regulations such as Regulation EU 1069/2009 on animal by-products. Regional permitting and environmental rules are added on top.
What is the Biogas Roadmap?
It is the strategic document for the sector approved by the Spanish Government in March 2022. It assesses the biogas potential in Spain, sets the growth path towards 2030 and deploys 45 measures: guarantees of origin for renewable gases, investment grant lines, administrative simplification and promotion of biomethane. It imposes no obligations on plants: it guides policies and grants.
What obligations does a Spanish biogas plant have?
It depends on its substrates and configuration. As a minimum: administrative and environmental authorisation (regional), registration and emission limits if it has a cogeneration engine (Royal Decree 1042/2017) and conditions for land application of digestate (Royal Decree 1051/2022). If it receives animal by-products, additionally: animal by-products authorisation, hygienisation according to category and documentary traceability (Regulation EU 1069/2009 and Royal Decree 1528/2012).
How does Spanish regulation connect with European regulation?
In two ways. European regulations (such as 1069/2009 on animal by-products) apply directly, without the need for a Spanish rule; the royal decrees only implement them. Directives (renewables, medium combustion plant emissions) are transposed through national rules such as Royal Decree 1042/2017. In practice: the European level sets the what and the Spanish framework specifies the how, the registers and the competent authorities.
Smallops and the regulatory fit of your plant
The cost of non-compliance (a misclassified substrate, digestate applied outside the rules) far exceeds that of doing the homework on time. At Smallops we review the regulatory fit of your substrates, your digestate and your emissions within an Operational Excellence Diagnosis.
Does your plant comply with the whole regulatory mosaic?
Request a Smallops Operational Excellence Diagnosis: we review which rules apply to your substrates, your digestate and your emissions, and tell you what you are missing and how to solve it.
References and standards
IDAE (2022). Hoja de Ruta del Biogás (Biogas Roadmap). Ministry for the Ecological Transition and the Demographic Challenge. idae.es/publicaciones/hoja-de-ruta-del-biogas
Plan Nacional Integrado de Energía y Clima, actualización 2023-2030 (2024). miteco.gob.es
Royal Decree 1051/2022, of 27 December, on sustainable nutrition of agricultural soils. boe.es/eli/es/rd/2022/12/27/1051
Regulation (EC) 1069/2009 of the European Parliament and of the Council on animal by-products not intended for human consumption. eur-lex.europa.eu