The core mechanism is easy enough: a government offers a temporary residence permit to overseas buyers who invest a set amount in local real estate. The qualifying amount varies widely between countries, and the authorities adjust it more often than buyers expect.
A crucial distinction separates residence and citizenship. A residence permit gives you the right to live in the country, typically with renewals, whereas a passport normally requires far more time and additional conditions. Any offer of nationality in exchange for buying an apartment is reason for caution.
Past the headline threshold, such permits impose further conditions. Typical examples cover a clean criminal record, private health insurance, documented income and a minimum stay in the country per year. Missing one of these can cost you the residency even if the marbella property investment is still yours.
Fiscal residency forms a different question altogether. Having residency does not by itself make you a tax resident, though crossing the day-count threshold usually will. Many countries apply a residence test based on days, and the consequences extend to earnings from abroad.
A sensible approach is the same everywhere: pick a turkler property prices you would want anyway, and treat the permit as a bonus. Such schemes close from time to time, and an apartment bought only for paperwork can be a poor asset once the rules change.