If you have not paid taxes in Portugal for 5 years
The tax authorities in Portugal may request proof of tax residency and taxation abroad for the previous 5 years. Usually, the Portuguese tax authorities require a certificate of tax residency in the country of the previous residence, issued in accordance with the terms of the Double Tax Treaty signed with Portugal.