Hong Kong police have fired tear gas at an unauthorised protest involving tens of thousands of people.
Demonstrators had been marching through the northern district of Yuen Long, condemning an assault on pro-democracy protesters by armed masked men that took place there last week.
Police have been accused of turning a blind eye and colluding with the attackers, claims they deny.
Hong Kong has seen seven weeks of anti-government and pro-democracy protests.
The protests were sparked by a controversial bill that would have enabled extraditions to mainland China.
The government has since halted the legislation – but protesters are now also demanding an inquiry into police violence, democratic reform, and that the territory’s leader Carrie Lam resign.
Saturday’s march had been banned by the police – a highly unusual move in the territory, where protests are usually allowed.
Police say they refused permission because they feared violent clashes between protesters and residents.
The rally was planned as a response to last Sunday’s attack, where about 100 men descended on Yuen Long’s metro station, beating protesters – as well as passersby and journalists – with wooden and metal sticks.
Forty-five people were injured in the attack, which was widely blamed on triad gang members.
The armed men appeared to target people wearing black – the colour people had been told to wear for that day’s protest.
Yuen Long is located in a rural district in Hong Kong, and is located in the north near mainland China.
Triads are known to be active in Yuen Long, and many local villagers have also expressed opposition to the pro-democracy protests.
Tens of thousands defied the police ban and approached Yuen Long on Saturday, marching down some of the main roads.
Police observed and filmed the start of the protest, and riot police could be seen on standby.
Police said some protesters were holding iron poles and shields, and “even removing fences from roads”.
Some protesters also surrounded and vandalised a police vehicle, “causing danger to the life of the police officers on board”, they said.
Shortly after 17:00 local time (10:00 BST), police began firing several rounds of tear gas in an attempt to disperse the crowd.
The protesters – most wearing masks and hard hats – threw projectiles and swore at police – but also parted to allow ambulances to go through.
Protesters have been demanding an independent inquiry into police violence – saying police used excessive force in several anti-extradition bill and pro-democracy protests.
During Sunday’s suspected triad attack, protesters said the police were slow to respond to emergency calls – and only appeared at the station after the attackers had left.
Demonstrators and pro-democracy legislators have alleged that the authorities – including the police and pro-government legislators – had advance knowledge of the attack.
One Yuen Long resident told the BBC Chinese service that a relative working in the police force had warned her, ahead of the attack, not to wear black clothes.
Police say their forces were stretched during another day of unrest, and said suggestions that they had colluded with criminal gangs was a “smear”.
Police say 12 people have so far been arrested over Sunday’s attack, including nine men with links to triads.
The chief executive’s deputy, Matthew Cheung, apologised on Friday , saying “the police’s handling fell short of residents’ expectations”.
However, his apology sparked outrage among police officers.
“Over the past few months we have been violently charged and verbally abused. Off-duty we suffer online abuse, harassment and provocation… your works have completely written off our efforts in maintaining law and order,” the Hong Kong Police Inspectors’ Association said in an open letter.
There have also been growing tensions between protesters and pro-Beijing groups.
Earlier this week, pro-Beijing legislator Junius Ho’s office was ransacked, and his parents’ graves were vandalised.
He had come under criticism after video footage showed him shaking hands with white-shirted men on Sunday shortly before the attacks.
He said he did not know about the attack, but defended the men, saying they were simply “defending their home and people”.
Separately, Reuters news agency reports that, a week before the Yuen Long attack, a Chinese government official appeared at a local village banquet and encouraged the crowd to chase away protesters and “protect our home”.
China’s Liaison Office in Hong Kong has rejected “false rumours” linking it to the Yuen Long attack.
3 April – Hong Kong government introduces amendments to the city’s extradition laws to the legislature that would allow criminal suspects to be extradited to mainland China.
9 June – In the first of many huge protests against the changes, an estimated million people march to government headquarters.
12 June – Anti-extradition bill protesters block roads and try to storm government buildings – police fire tear gas, rubber bullets and bean bag rounds at protesters, in the worst violence the city has seen in decades.
15 June – Hong Kong leader Carrie Lam indefinitely delays the bill in a dramatic reversal.
16 June – Despite this, an estimated two million people take to the streets demanding the complete withdrawal of the bill, an investigation into alleged police violence, and Carrie Lam’s resignation.
21 June – As anger grows towards police, protests blockade police headquarters for 15 hours. They now also want protesters that were arrested to be exonerated.
1 July – On the anniversary of Hong Kong’s handover from the UK to China, the Legislative Council (LegCo) building is stormed and broken into by protesters.
21 July– Protesters deface China’s Liaison Office in Hong Kong. That same night mobs of men wearing white shirts attack protesters and commuters in Yuen Long station, near mainland China, in a new escalation of violence.