SPAIN: Moving into your Spanish property
Insurance
It's highly recommended that you take out home insurance when buying a home in Spain.
A building insurance policy (which covers the structure of the property against natural disasters, fire, and other damage) is often a requirement for mortgage providers.
Contents insurance (which covers your belongings in the home) isn't legally necessary. It could be a wise investment, however, especially if you plan to rent out your property or you spent a lot of time away from home.
Utilities and telecommunications
Setting up utilities is one of the more tedious tasks when buying a home in Spain. You may find that the previous owner already had policies in place that you can take over.
Waste disposal is managed at a municipal level, with annual fees for rubbish collection. With other utilities, such as gas, electricity, and water, you'll be able to compare deals before settling on a provider.
Font: https://www.expatica.com/es/housing/buying/spain-property-103805/