German police have clashed with protesters in Hamburg a day ahead of the G20 summit, using water cannons, pepper spray and batons to disperse marchers after some attacked them with bottles and other objects.
The skirmishes came hours before the two-day gathering of the world's top economic powers gets under way on Friday morning in Germany's second-biggest city.
Its host, German Chancellor Angela Merkel, said she hoped the leaders would be able to find "compromises and answers" on a wide range of issues - although the prospects of finding common ground on climate change and trade were uncertain.
Thursday evening's protest as the G20 leaders arrived in Hamburg was titled "G20: Welcome to Hell", and a stand-off between anti-capitalist protesters and police developed before the march itself really got going.
Police said they repeatedly asked some demonstrators to remove their masks, to no avail. They then decided to separate the group from the rest of the march, which they estimated at 12,000 people in total.
Black-hooded protesters attacked a police vehicle with bottles and bricks, breaking its window.
Organisers quickly called an end to the march after the violence broke out, police said. Skirmishes continued, with police advancing down the street with two water cannons while being pelted with bottles.
A nearby building was plastered with the slogan "Borderless solidarity instead of nationalism: attack the G20". A small group on the roof set off fireworks. Police said windows at a furniture store and a bank were damaged. There was no immediate word on a number of arrests or injuries.
Many other groups are calling for peaceful protests and are pushing the G20 leaders for action to fight climate change and address economic disparities in the world. Some are even calling for the dissolution of the G20 itself so the United Nations becomes the platform for such discussions.
In all, more than 100,000 protesters are expected in Hamburg for the summit, with some 8,000 considered part of Europe's violent left-wing scene, according to police.
The northern port city has boosted its police with reinforcements from around the country and has 20,000 officers on hand to patrol Hamburg's streets, skies and waterways.
Ms Merkel is also hoping to keep things under control inside the city congress centre where the summit is being held. With guests including US president Donald Trump, Russian president Vladimir Putin and Turkish president Recep Tayyip Erdogan, the search for compromises is expected to be challenging.
Ms Merkel said leaders would address regulating financial markets, fighting terrorism and pandemics and combating climate change, among other issues. She said "free, rule-based and fair trade" will be an important issue.
"You can imagine that there will be discussions that will not be easy," she said. "Globalisation can be a win-win situation. It must not always be that there are winners and losers."
In the wake of Mr Trump's recent decision to pull out of the Paris deal fighting climate change, the battle against global warming promises to feature prominently in discussions at the summit.
Ms Merkel has rejected calls from some to push for a strong "G19" statement - without the US - on climate change. That is something that Zhu Guangyao, a Chinese deputy finance minister, told reporters on Thursday that Beijing also did not support.
"The policies produced by the G20 should be by the consensus of all member states," he said. "No one should be excluded."
Still, he added, "China will firmly promote its policies taking more measures against climate change".