A residence permit is a document or card required in some regions, allowing a foreign national to reside in a country for a fixed or indefinite length of time. These may be permits for temporary residency, or permanent residency. The exact rules vary between regions. In some cases a temporary residence permit is required to extend a stay past some threshold, and can be an intermediate step to applying for permanent residency.