As a non-resident you can keep an EU registered vehicle in Spain for 6 months before you are required by Spanish law to either re-register your vehicle as a Spanish one or physically take it out of the country for 6 months. If you are a resident & your vehicle is non EU (UK now post Brexit) in Spain, you only have 1 month to register it.
ISN Changed status to publish March 23, 2023