TEHRAN, Young Journalists Club (YJC) - After nine hours of often stormy talks, EU leaders agreed to share out refugees arriving in the bloc on a voluntary basis and create "controlled centers" inside the European Union to process asylum requests.
They also agreed to share responsibility for migrants rescued at sea, a key demand of Italy's new prime minister, Giuseppe Conte.
"Italy is not alone anymore," he said.
Conte, whose government includes the anti-establishment 5-Star movement and far-right League, had earlier refused to endorse a summit text on security and trade until other leaders had pledged to help Italy manage Mediterranean arrivals.
Interior Minister Matteo Salvini, whose far right League party campaigned to bar migrants fleeing Africa and expel those already in Italy, welcomed the deal, saying Italy had obtain 70 percent of what it had been seeking.
"Let's see the concrete commitments," Salvini said in a radio interview.
The summit underscored how Europe's 2015 spike in immigration continues to haunt the bloc, despite a sharp drop in arrivals of people fleeing conflict and economic hardship in the Middle East and Africa.
It took place in an atmosphere of political crisis, with German Chancellor Angela Merkel under intense political pressure at home to take a firmer stance on migration.
Merkel, speaking to reporters at 5 a.m. (0300 GMT), sought to put a positive spin on the result, saying it was a good signal that leaders had been able to agree a common text.
But she acknowledged the bloc still had "a lot of work to do to bridge the different views."
French President Emmanuel Macron, who has sharply criticized Italy for refusing to allow a migrant rescue ship into its ports, said European cooperation had "won the day".
In a final statement full of convoluted language designed to satisfy the divergent views, the leaders agreed to restrict migrant moves within the bloc but made clear virtually all of their pledges would be carried out on a "voluntary basis" by member states.
They also agreed to tighten their external border and increase financing for Turkey, Morocco and other North African states to prevent migration to Europe.
Merkel's coalition partner, the Christian Social Union (CSU), which has threatened to shut Bavaria's border to migrants - something that could trigger the collapse of her three-month-old government as well as the EU's Schengen free-travel zone - gave the summit deal a cautious welcome.