Hong Kong's opposition pro-democracy movement has made major gains in the Chinese territory's district council elections, local media reports say.
It took 201 of the first 241 seats declared, according to the South China Morning Post newspaper. Pro-Beijing candidates took just 28.
More than 2.9 million people voted, a turnout of more than 71 percent, against 47 percent in 2015.
The election was billed as a test of support for embattled Chief Executive Carrie Lam.
Pro-democracy protest groups wanted the vote to send a message to the Chinese government after five months of unrest and anti-government protests.
Pro-Beijing candidates had called on voters to support them in order to express frustration at the upheaval caused in recent months by continuous clashes between protesters and police.
A record 4.1m people had registered to vote, or more than half the population of 7.4m.
Hong Kong's district councillors mainly deal with local issues such as bus routes and garbage collection, but do have some influence in choosing the city's chief executive.
Casting her vote, Ms Lam promised to listen "more intensively" to the views of district councils.
What's the latest?
Some notable names ran in the elections, including pro-Beijing lawmaker Junius Ho, one of the most controversial politicians in the city, who suffered a shock defeat.
He was stabbed earlier this month by a man pretending to be a supporter. The lawmaker has openly voiced his support for Hong Kong's police force on multiple occasions. He was in July filmed shaking hands with a group of men - suspected of being triad gangsters - who later assaulted pro-democracy protesters.
Jimmy Sham, a political activist who has recently risen to prominence as the leader of the Civil Human Rights Front - a campaign group responsible for organising some of the mass protest marches - won a seat after running for the first time.
Mr Sham has also been attacked twice, once apparently with hammers. Photographs at the time showed him lying on the street covered in blood.
Standing on crutches, Mr Sham told Reuters news agency on Sunday that the election was "special because it is a formal confrontation between pro-establishment and pro-democracy parties".
Pro-democracy activist Joshua Wong was barred from running in the elections, a move he referred to as "political screening", but the pro-democracy candidate who replaced him is said to have won.
In a tweet, Mr Wong said the "historic" results showed that public opinion had not turned against the pro-democracy movement.
Reflecting on her reported defeat, pro-Beijing lawmaker Alice Mak suggested Ms Lam's administration was partly to blame.
"In the election campaign, pro-government candidates have been unfairly treated. This is a very important reason," she said.
Starry Lee Wai-king, chairwoman of the city's largest pro-Beijing party, was among the few establishment candidates to secure her seat.
"I think [Lee] is the only one who can survive the de facto referendum," said Leung Kwok-hung, her pro-democracy opponent in the poll.
More than 1000 candidates ran for 452 district council seats which, for the first time, were all contested. A further 27 seats are allocated to representatives of rural districts.
Pro-Beijing parties held the majority of these seats ahead of the election.
Police were seen outside some polling stations and on the streets during Sunday's vote but correspondents said they kept a low profile.
"Facing the extremely challenging situation, I'm pleased to say... we have a relatively calm and peaceful environment for [the] election today," Ms Lam said after voting.
Under Hong Kong's electoral system, 117 of the district councillors will also sit on the 1200-member committee that votes for the chief executive.
So a pro-democracy district win could translate eventually to a bigger share, and say, in who becomes the city's next leader.
- BBC