Addressing the energy transition of all Spanish ports will require an investment of more than 4.5 billion euros, earmarked for the installation of renewables, the electrification of ports and the production of biofuels for ships.