To apply for renewal you must have a valid residence permit or one that has ben expired less than 6 months ago
A residence permit is a document issued by the Agência para a Integração, Migrações e Asilo (AIMA), which allows foreign citizens to reside in Portugal.
The residence permit can be temporary or permanent and must be renewed periodically.
You can renew your residence permit automatically on the AIMA online service, or in person at a registry office, by prior appointment. The services will contact you to make an appointment.