There are various ways of getting residency in Portugal. In addition to applying for Portuguese residency by ancestry (also known as residency by descent), as the non-EU spouse of a Portuguese citizen, or on the basis of gaining Portuguese employment, you can also apply for residency via the Portuguese Golden Visa and D7 Passive Income Visa programs.