Thailand hosts more than four million migrants, asylum seekers, and refugees. Officials have broad discretionary powers to place non-citizens in detention and there is no detention time limit. Severe overcrowding is endemic at detention facilities and conditions are reportedly abysmal, including for the thousands of foreign children who are detained annually.