BRUSSELS – The European Union and Turkey agreed on a deal to stem the migrant crisis, including a three-billion-euro ($3.2-billion) aid package for Syrian refugees in Turkey, EU president Donald Tusk said after a summit in Brussels on Sunday.

Turkey promised to help stem the flow of migrants to Europe in return for cash, visas and renewed talks on joining the EU in a deal struck on Sunday.

EU leaders hailed the agreement as a key step toward substantially reducing the number of asylum seekers entering the bloc, while Turkey’s Prime Minister Ahmet Davutoglu said Sunday’s summit marked a historic new beginning in the often fraught relations between Brussels and Ankara.

A key element is 3 billion euros ($3.2 billion) in EU aid for the 2.2 million Syrian refugees in Turkey, intended to raise living standards and so persuade more to stay put rather than attempt the perilous crossing to the Greek islands and the EU.

“Our agreement sets out a clear plan for the timely re-establishment of order at our shared frontier. We will also step up our assistance to Syrian refugees in Turkey through a new refugee facility of three billion euros,” Tusk told a press conference with Turkish Prime Minister Ahmet Davutoglu.

A spokesman for summit chairman Donald Tusk, the European Council president, said a joint statement had been agreed.

“Our agreement sets out a clear plan for the timely re-establishment of order at our shared frontier,” said Tusk, adding that they expected a major step towards changing the rules of the game when it came to stemming the migration flow coming to the EU via Turkey.

“We will also step up our assistance to Syrian refugees in Turkey through a new Refugee Facility of 3billion euros,” Tusk said, to which Davutoğlu said that the money was going to be spent on Syrian migrants and not on Turkey.

Key points of the deal: