"Foreigner" is the term used to refer to all those individuals who move or settle in lands other than their birthplace. This, at present, is subject to a series of prudent regulations, which will make their stay limited, in addition to lower rights or benefits than those of those born in the State in question. Generally, it is necessary for the person who will travel to complete a series of processes that may help their legal entry into the country, such as a visa; likewise, if your period of time in the country is longer than one month, it is likely that you will need a residence card, which guarantees your rights as a foreigner.
The foreigner can achieve the status of "resident", when he has already crossed the fixed time limit of stay in the country to obtain residence; likewise, they are also required to have a valid visa of any kind. This is often viewed as one of the main steps in achieving citizenship. However, this entails certain responsibilities, since, if any of the rules imposed to achieve the status are not met, the process will be started again, after a specific period of time.
An example of the processes involved in achieving resident alien status is the United States. First, it is important that the person has possessed a Green Card, that is, be a permanent legal resident; then, having done every day of permanence that is required, and these 31 days during the year in progress and 183 in full over a period of 3 years in any of the 50 states of the country or some maritime space belonging to it.