A residence permit is a document which allows foreign citizens to stay in a country for a fixed or indefinite length of time.