Alternatives to detention (ATD) are any legislation, policy or practice, formal or informal, that ensures people are not detained for reasons relating to their migration status. Under international law, immigration detention must only ever be used as a last resort.