Russia's ruling United Russia party has suffered major losses in Sunday's election to the Moscow city parliament, nearly complete results show.
The party lost nearly a third of the seats in the 45-member parliament, but remains on course to retain its majority with about 26 seats.
With most opposition candidates disqualified, the Communists, independents and others gained seats.
The exclusion of the opposition candidates triggered mass protests.
Thousands of people have been detained, and riot police have been accused of a brutal crackdown on demonstrators.
What's the latest from Moscow?
With nearly all the results in, United Russia is predicted to get 26 seats in the city parliament (Mosgorduma).
The party's brand has become so toxic lately that all its members ran as independents, the BBC's Sarah Rainsford in Moscow reports.
In a major upset, the party's leader in the Russian capital, Andrei Metelsky, was not re-elected.
The Communist Party is expected to get 13 seats, while the liberal Yabloko party and left-leaning Just Russia will each have three seats.
Opposition leader Alexei Navalny promoted a strategy of "smart voting" after his own allies were all barred from running in this election.
Mr Navalny's team exposed what they called "undercover" United Russia candidates, and campaigned for those best placed to defeat them. He described the result as "fantastic".
State media are mostly presenting the results in Moscow as a win for the governing party in any case, our correspondent says.
But the Kremlin will certainly be studying the real picture, and what it says about the public mood in the Russian capital, she adds.
Turnout in Sunday's election was about 22%.
What about the rest of Russia?
Unlike Moscow, Kremlin-backed candidates dominated in other local and regional elections held across the country on 8 September.
They look set to win in all 16 regions that were electing their governors.
United Russia was formed in 2001 to support President Vladimir Putin, whose ratings have fallen in recent months.
Commenting on the overall election results, Mr Putin's spokesman Dmitry Peskov said: "On the whole, United Russia's campaign across the country was very, very successful.
"In some places, it got more seats, in others - fewer. Across the country, the party showed its political leadership."
When asked whether the loss of seats in Moscow was due to the protest vote, Mr Peskov said: "The result shows the opposite - that all the theories of political pundits about a protest vote were not confirmed."