Double tax treaty Spain UK
Spain and the UK have a treaty so you don't get taxed twice on the same income. You declare in both countries and claim relief. Which one is "primary" depends on where you're tax resident. Get a pro to do it the first time.