A train full of migrants has stopped at a town west of Budapest after finally being allowed to leave the Hungarian capital.
It follows a two-day stand-off between the refugees and police at the Keleti station in the Hungarian capital.
The migrants have been taken from the carriages at Bicske and moved into an underpass by officers.
Hungary’s railway company said it had suspended all direct trains from the Hungarian capital to western destinations “in the interests of railway transport security”.
Police later peacefully cleared roughly 900 migrants from one train, many of whom sat down on the platforms to wait. Another train then left with migrants, stopping in the town of Bicske, 22 miles west of Budapest, where one of Hungary’s refugee camps is located.
Earlier, Hungary’s president slammed Germany and EU leaders for a lacking urgency in dealing with Europe’s migrant crisis.
The question of how to defuse the human gridlock in Hungary was being hotly debated in Brussels at a meeting between EU leaders and Hungary’s anti-immigrant prime minister, Viktor Orban.
Hungary, which for months had done little to prevent applicants from head west after short bureaucratic delays, now says it won’t let more migrants deeper into the European Union.
“We Hungarians are full of fear. People in Europe are full of fear, because we see that European leaders, among them the prime ministers, are not capable of controlling the situation,” Mr Orban said.
Mr Orban blamed Germany and confirmed his government’s plan to send up to 3,500 troops to Hungary’s southern border with Serbia, stepping up efforts to stop as many migrants as possible from entering the country.
His top aide said 160,000 migrants had reached Hungary this year, nearly 90,000 of them since July 6.
The migrant “problem is not a European problem, the problem is a German problem, nobody would like to stay in Hungary,” Mr Orban said. “All of them would like to go to Germany.”
He vowed that Hungary would defend its borders strictly applying EU laws by fingerprinting and screening all migrants that cross into its territory.
Once the new measures are passed in parliament, he said, migrants and smugglers alike would be warned of what was to come.
The military deployment in one of several measures tightening migration laws and increasing penalties for human traffickers expected to be approved Friday by Hungarian lawmakers.
Mr Orban’s chief of staff, Janos Lazar urged Germany to help ease the situation at the Keleti train station. With an estimated 3,000 people camping outside it in the centre of Budapest, conditions have grown increasingly squalid despite the efforts of volunteers distributing water, food, medicine and disinfectants.
“We would like Germany, where the migrants want to go, to pull its own weight,” Mr Lazar said, suggesting the migrants go to the German embassy in Budapest and try to apply for a German entry visa.
“We believe this is primarily an immigration crisis, not a refugee crisis, and in this situation Europe can’t renounce defending its borders,” Mr Lazar told reporters in parliament.
On Wednesday, migrants had threatened to walk the 105 miles to the Austrian border if police would not let them board trains to their desired destinations in Austria and Germany.