These are a few guidelines
There are only a few restrictions on buying any type of property in Spain, whether you are an EU citizen or not. The Spanish government actively encourages foreign property investors regardless of whether it is as an investment or or as a buy-to-let, but there are some simple rules that need to be followed.
Two important things you will need to do are
Because of the tax agreements between EEA member countries you only need to pay this tax in one country