If required upon arrival in Spain
Booking an appointment for Padron registration, preparation of all documents + 125 euros
Checking the long-term rental agreement and communicating with the landlord to make changes if necessary + 195 euros
First you get a residence permit for 1 year, then an extension for 2 years
If you want to extend your residence permit, you must not be outside Spain for more than 6 months within a year