Spain's government on Monday presented a nine-billion-euro ($10.5-billion) energy-transition plan that would include making homes more energy efficient and providing near-free public transport to low-earners.

The project, which would be co-financed by the European Union, was announced as Spain confronts a global energy shock caused by the US-Iran war, and as it positions itself to cope with climate change.

"The energy revolution can't be just for those who can change cars, put up solar panels on their roof or renovate their homes without subsidies," Spanish Prime Minister Pedro Sánchez said at the Social Climate Plan on Monday.

"It needs to reach everyone."

The Spanish premier stressed that "we shouldn't have to choose between making ends meet or making it to the end of the century", at a time when he fears that the environmental movement could lose momentum due to denialist rhetoric that "does a lot of damage."