Defiant Hong Kong protesters risked arrest outside a local court in the biggest demonstration in months, as dozens of the city’s most prominent pro-democracy activists were jailed on subversion charges and authorities in Beijing moved to limit the opposition’s role in future elections.

The arrests of 47 opposition figures including key protest organizers Joshua Wong, Benny Tai and Jimmy Sham over their roles in an informal election primary last year represented the most sweeping use of the national security law imposed by China last year. The assembled activists appeared in a mass hearing Monday before Chief Magistrate So Wai-tak.

The proceedings drew hundreds of supporters outside the courthouse in the West Kowloon area. Not only did participants risk arrest by attending an unauthorized rally, some chanted "Liberate Hong Kong! Revolution of our time!” — a slogan banned by authorities since the security law’s enactment.