Yes, you can get permanent residence by investment in the EU after years of living there. One example is Portugal, which offers a permanent permit for an investment of at least €280,000 in real estate after a period of five years. Another country that offers Europe residency by investment is Spain, if you purchase a property for at least €500,000.