If you are from the EU you will need to register with the local council and get a NIE/NIF number. An estate agent or solicitor can guide you on this requirement.
Thanks for the info on registration.