The head of Germany's "anti-Islamisation" movement Pegida has quit after disparaging anti-refugee comments and a photo showing him apparently posing as Hitler emerged.
Lutz Bachmann apologised for Facebook comments he made in which he reportedly called refugees "animals" and "scumbags".
He did not mention the photo of him with Hitler-style hair and moustache.
Meanwhile, thousands of people have marched in Leipzig at a Pegida rally.
Police were deployed to the streets of the eastern German city to prevent clashes with members of a rival anti-Pegida demonstration.
Pegida supporters chanted "We are the people", while their opponents shouted "Get out of here."
There were no reports of violence.
'Joke'
The rival rallies came as Mr Bachmann apologised for his "ill-considered" remarks.
"Yes, I am stepping down from the board," he was quoted as telling Germany's Bild daily newspaper in an online report.
Pegida spokeswoman Kathrin Oertel said the anti-refugee comments went too far. However, she sought to play down the "Hitler" photo as a "joke" and "satire, which is every citizen's right".
But the German government condemned it. Vice-Chancellor Sigmar Gabriel told Bild: "Anyone in politics who poses as Hitler is either a total idiot or a Nazi. Reasonable people do not follow idiots, and decent people don't follow Nazis."
Pegida has focused on Leipzig after police banned a protest by the movement in Dresden on Monday over reports of an assassination plot against the movement's leaders.