Russian police wielding batons wrestled with demonstrators and arrested hundreds of people in central Moscow on Saturday at a protest demanding that opposition candidates be allowed to run for the Moscow city council. The dispute comes as the Kremlin is struggling with how to deal with strongly opposing views in its sprawling capital of 12.6 million people.

State news agencies Tass and RIA-Novosti cited police as saying 1,074 people had been arrested. There was no immediate information what charges they face.

Lines of helmeted riot police tried to push back the protesters in Moscow, some of whom resisted physically. Demonstrators shouted slogans including "Russia will be free!"

Get Breaking News Delivered to Your Inbox

Many videos and images posted to social media appear to show riot police strike protesters with batons. Some demonstrators reported injuries.

Росгвардейцы избили парня дубинкой. Фото: МБХ медиа pic.twitter.com/96WIrAeDjk — МБХ Медиа (@MBKhMedia) July 27, 2019

Нагцвардия и полиция избивает дубинками лежащих на земле протестующих

Видео: Медиазона pic.twitter.com/Kgux1ktrsF — Медиазона (@mediazzzona) July 27, 2019

The crowd appeared to number several thousand people, but there was no official estimate of its size. There was no immediate information on what charges the detainees might face.

The Russian protest group Pussy Riot posted to Twitter with the message: "Defending our election rights."

moscow 🇷🇺 defending our election rights pic by santiago pagnotta pic.twitter.com/ND6PrA4g8V — 𝖕𝖚𝖘𝖘𝖞 𝖗𝖎𝖔𝖙 (@pussyrrriot) July 27, 2019

Alexei Navalny, Russia's most prominent opposition figure, had called Saturday's protest and was sentenced Wednesday to 30 days in jail for doing so.

Before the protest, several opposition members and aspiring candidates were detained throughout the city, including Ilya Yashin, Dmitry Gudkov and top Navalny associate Ivan Zhdanov.

Police presence was heavy at the mayor's office on Tverskaya Street, one of Moscow's main thoroughfares, with police trucks and buses parked in the building's courtyard and other buses positioned nearby to take detainees away.

The decision by electoral authorities to bar some opposition candidates for having allegedly insufficient signatures on their nominating petitions already sparked several days of demonstrations even before Saturday.

The Moscow city council, which has 45 seats, is responsible for a very large municipal budget and is now controlled by the pro-Kremlin United Russia party. All of its seats, which have a five-year-term, are up for election on Sept. 8.