Immigration detention is when someone who has come to a country without permission to stay is put in a special place to wait and see if they can stay in the country. Sometimes the government of the country decides that the person cannot stay, and they have to take the person back to their home country.