A residence permit is a document providing a foreigner the rights to reside in the Republic of Latvia for a definite period of time (a temporary residence permit) or permanently (a permanent residence permit).