Thousands of Syrian refugees poured into Turkey on Sunday to escape the battle between Kurds and Islamic State (ISIS) jihadists for the Syrian town of Tal Abyad, as the Turkish authorities reopened the border after days of closure.
The Syrians, many carrying sacks of possessions and small children, flooded through the Akcakale border gate onto Turkish territory, an AFP photographer said.
There had earlier been chaotic scenes as some of the refugees crossed the border illegally through holes in fences, prompting rapid intervention from the Turkish army.
Turkey had for several days been blocking the Syrians from entering Turkey, saying it would only allow them into the country in the event of a humanitarian tragedy.
However, local officials in Akcakale said earlier that permission had been received from Ankara to allow the refugees into Turkey.
The decision came as Kurdish forces advanced on Tal Abyad, which is controlled by the IS group that has captured swathes of Syria and Iraq.
A delay followed which Turkish television said was due to ISIS jihadists trying to stop the refugees from crossing the border into Turkey.
Chaos ensued with some Syrians managing to push their way through the fences away from the main Akcakale border gate to enter Turkey illegally.
Some squeezed under the mesh-wire barrier while others managed to climb over, throwing their bags over the fence, according to AFP.
They then had to negotiate the border trench with dozens managing to scramble across. The army used water cannon and tear gas in a bid to restore control.
But in the early evening Turkish authorities opened the Akcakale border gate and the refugees began to enter in an orderly fashion.
Turkish television said that in all 3,000 people were expected to cross over into Turkey but the AFP correspondent at the scene said the numbers appeared considerably greater.
Under an "open-door" policy championed by President Recep Tayyip Erdogan, Turkey has taken in 1.8 million Syrian refugees since the conflict in Syria erupted in 2011.
But the Turkish government has in recent months grown increasingly frustrated with the situation, claiming that it has been left to shoulder the burden of refugees while the West stands by.
Erdogan said earlier he was troubled by the advance of Kurdish forces in the Tal Abyad region, saying they could in the future threaten Turkey.
"This is not a good sign," he told reporters from selected Turkish media aboard his presidential plane while returning from a trip to Azerbaijan.
"This could lead to the creation of a structure that threatens our borders. Everyone needs to take into account our sensitivities on this issue," he said without commenting directly on the closure of the border.
AFP contributed to this report.