Immigration law refers to the rules established by the government for determining who is allowed to enter the country, and for how long.