If you buy property in Spain you can get a Spanish residency permit (this is the correct bureacratic terminology for Spain's golden visa), which allows you to live in Europe. ... In 2013 Spain passed a law that gives residency permits to non-EU citizens in exchange for a property investment of 500,000€ or more. I used to buy property in this area
https://wtgspain.com/alicante-province mostly because I found new work too near my future house.