Several hundred migrants have staged an angry demonstration after police evacuated Budapest's main international train station where they were trying to travel to western Europe.
"Germany! Germany!" the crowd of young men chanted outside Keleti station on Tuesday (local time). "We want to leave!" and "Merkel!" they cried, referring to the German chancellor.
A public tannoy announcement was made at the train station, which has been packed with migrants for several weeks, that no trains would be leaving or arriving "until further notice" and asking everyone to leave.
Some migrants then began shouting as hundreds of police, some of them riot officers, began moving people out although they offered no resistance and there were no clashes.
The announcement came after around 500 migrants tried to board the latest train to Vienna.
In August alone, 50,000 migrants, mostly from hotspots such as Syria, Iraq and Afghanistan, entered European Union member Hungary.
Most then seek to travel onwards to western European countries, particularly Germany.
Hungary, part of Europe's visa-free Schengen zone, had previously insisted that EU rules prevent them from letting visa-less migrants travel onwards to the west.
Frustrated refugees, pouring into Hungary at a rate of more than 2000 a day during August, were left to set up ever-growing makeshift camps outside the two main stations in Budapest.
A total of 3650 migrants – lots of young men but also large numbers of families with small, exhausted children and a few old people – reached Vienna by train on Monday, this year's biggest daily number, Austrian police said.