Hello,

Spending in Spain more than 183 days per year, makes you a fiscal resident in this country. However to become an official resident you need to request at the police station a 'certificado de registro como residente comunitario'. It is a green A4 document.