Portugal did have, and may still have, a scheme whereby if a UK national bought any residential property in Portugal, and spent more than 180 days a year in Portugal, they would treat you as a Portuguese tax resident and exempt you from tax on your worldwide income for up to 10 years.