For example

Because she was living in a foreign country, she was considered an alien under the law.