When you´re working online from Spain, you should be paying taxes and Social Security contributions here.
Although this FAQ is aimed at UK nationals, it is also applicable to all nationalities/foreign contracts
Many examples of expats that used to work for a company in the UK, while living there as well, and moved to Spain, continuing to work for the company, but online.
In most cases, unless the company you work for has made arrangements to be able to pay into the system here for you, the most practical option would be to register as self employed Autonomo and invoice the company abroad.
More info if you´re working part time here, part time in the UK in this FAQ from our website.
The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.