; or (ii) has participated in the activities of a criminal gang (as so defined), knowing or having reason to know that such activities will promote, further, aid, or support the illegal activity of the criminal gang. . (d) Designation (1) In general Chapter 2 of title II of the Immigration and Nationality Act ( 8 U.S.C. 1182 ) is amended by inserting after section 219 the following: 220. Designation (a) In general The Secretary of Homeland Security, in consultation with the Attorney General, and the Secretary of State may designate a group or association as a criminal street gang if their conduct is described in section 101(a)(53) or if the group or association conduct poses a significant risk that threatens the security and the public safety of United States nationals or the national security, homeland security, foreign policy, or economy of the United States. (b) Effective date Designations under subsection (a) shall remain in effect until the designation is revoked after consultation between the Secretary of Homeland Security, the Attorney General, and the Secretary of State or is terminated in accordance with Federal law. . (2) Clerical amendment The table of contents for such Act is amended by inserting after the item relating to section 219 the following: 220. Designation. . (e) Mandatory detention of criminal street gang members (1) In general Section 236(c)(1)(D) of the Immigration and Nationality Act ( 8 U.S.C. 1226(c)(1)(D) ) is amended— (A) by inserting or 212(a)(2)(N) after 212(a)(3)(B)