The laws, regulations, and procedures that govern the entry and residence of non-citizens in a country.