If you have bought an apartment or villa, which take part of a building complex, keep in mind that these will be subject to the Spanish Law of Horizontal Division (Ley de Propiedad Horizontal). This law is applicable whether you are resident or not.
In general terms, to acquire legal status and start any economic activity in Spain, the following procedural formalities are necessary (in some cases additional steps may be required):
Registration of the company name. You must apply for a certificate issued by the Central Commercial Registry (Registro Mercantil Central), confirming that the name you intend to use is not already registered.
Insurance in Spain is much the same as insurance anywhere, you need to make sure that you have adequate Spanish Life Insurance, Spanish Car Insurance, Spanish Home Insurance and it is also worth looking at private health Insurance in Spain if your pocket allows it.