The National Security Act, 1980 empowers the Union Government or the State Governments to detain a person to prevent him from acting in any manner prejudicial to the defence of India, the relations of India with foreign powers, or the security of India, or with respect to any foreigner with a view to regulating his continued presence in India.