Pro-Beijing lawmakers fast-tracked the legislation, with tough punishment for acts considered "external interference," insurrection and other offenses.
Hong Kong is supposed to be a semiautonomous enclave of China, "one country, two systems." But China is moving to impose a sweeping national security law on the city, which critics say is illegal.