Foreigners' access to work in Spain is regulated by different administrative law that enable them to work through residence and work authorizations:
General immigration regime and law
Regime for EU citizens and their families
Scheme for UK nationals, their family members and any other persons covered by the Withdrawal Agreement.
Regime for applicants and beneficiaries of international protection
Regime to support entrepreneurs and their internationalization.
Regime derived from the Start-up Law