European Union leaders reached a breakthrough deal on migration after all-night talks in Brussels, European Council President Donald Tusk announced on Friday.

The agreement has been billed as "make or break" for German Chancellor Angela Merkel's future in office amid a dispute with her hardline Interior Minister Horst Seehofer.

What's happened so far:

Tusk wrote on Twitter: "EU28 leaders have agreed on #euco [EU Council] conclusions incl. migration."

The deal includes vague wording on closed reception centers for migrants within the bloc. EU countries willing to establish the centers would process migrants and asylum seekers on their territory.

It also proposes screening migrants for their eligibility to apply for asylum before they reach the EU. Countries in North Africa and the Middle East would be offered EU financial aid in exchange for agreeing to set up screening centers the deal calls "regional disembarkation platforms."

Merkel said leaders had also agreed to stronger internal checks to stop asylum seekers from freely choosing an EU country in which to apply for asylum.

Italy had earlier refused to sign off on any joint conclusions from the meeting, which also included wording on Brexit and security, unless other EU governments agreed to compromise on migration.

The EU leaders agreed to pay another €3 billion ($3.497 billion) to Turkey in the second installment of the 2016 compensation deal for Ankara's efforts to keep migrants away from Europe.

Italian Prime Minister Giuseppe Conte said Italy was "satisfied" with the deal

'We still have a lot of work to do to'

Merkel said she was "optimistic" that the EU could continue working toward solving irregular migration after it had sent a "good signal" in agreeing on a common position. "We still have a lot of work to do to bridge the different views," she added.

French President Emmanuel Macron said, "It is European cooperation that has won the day." He added that "Europe will have to live with migratory pressures for a long time. We must succeed in standing up to this challenge whilst being true to our values."

Austrian Chancellor Sebastian Kurz said, "We have long been calling for these protection areas, safe zones, landing centers, however one wants to call them, outside of Europe ― this idea has now prevailed."

Dutch Prime Minister Mark Rutte said "Europe is going step by step" in tackling migration challenges and that the agreement was "necessary."

Italian Prime Minister Giuseppe Conte said "Italy is no longer alone" in the fight against irregular migration from North Africa and the Middle East.

Merkel's fight: German Interior Minister Horst Seehofer has threatened to use his ministerial powers to order border police to reject certain asylum seekers from entering Germany. Merkel and her Christian Democratic Party (CDU) have dismissed the idea in favor of an EU solution. Seehofer and his Christian Social Union (CSU), the CDU's sister-party, had agreed to wait and see whether Merkel and her EU counterparts could produce an "acceptable" solution in Brussels.

amp/sms (AFP, dpa, Reuters, AP)

Each evening at 1830 UTC, DW's editors send out a selection of the day's hard news and quality feature journalism. You can sign up to receive it directly here.