Maltese military vessels will soon take ashore 49 migrants who have been stranded aboard private rescue vessels since last month and the asylum seekers will be distributed among eight European Union nations.

Key points:

Eight EU countries have agreed to take the migrants

Sea-Watch said the migrants' physical and psychological health was deteriorating

Smugglers charge asylum seekers up to 2,000 euros a trip

Prime Minister Joseph Muscat announced a deal, brokered by the EU, to end the uncertainty over the migrants who are now aboard two aid vessels.

The eight countries that will take them in include Italy, whose anti-migrant interior minister, Matteo Salvini, had vowed for days that none would reach Italian soil.

The other countries are Germany, France, Portugal, Ireland, Romania, Luxembourg and Netherlands.

Early in the stalemate, Mr Muscat had also struck a defiant note, saying his tiny island nation would not let the 49 people set foot on Malta unless the deal included an agreement for fellow EU countries to take many of the 249 migrants who Maltese military ships had rescued in its search-and-rescue area in late December.

The deal announced on Wednesday meets his condition — most of the 249 migrants, rescued from Libya-based smugglers' unseaworthy boats, will be taken to other EU countries, while some will remain in Malta.

"We were not the responsible authority, and we were not the nearest safe port" for the two rescue vessels, Mr Muscat said.

Italy's populist government split over the fate of those aboard Sea-Watch 3 and another private vessel, Sea-Eye, with Premier Giuseppe Conte saying that Italy was willing to take children and their parents, even as Mr Salvini remained defiant.

The migrants involved in the EU-brokered deals are part of waves of people fleeing poverty and conflict in Africa, Asia or the Middle East, who have risked their lives aboard smugglers' boats to try to reach European shores in recent years.

On Wednesday, in Spain, police there said they broke up a gang that smuggled people and drugs by boat from Morocco into Spain, charging migrants up to 2,000 euros ($2,300) a trip.

The European Union's border agency Frontex says about 57,000 migrant crossings were detected last year in Spain, double the figure for 2017.

The numbers reaching Spain have surged as Italy's crackdowns on private rescue vessels caused the number of boats and migrants heading across the central Mediterranean toward Italian shores to drop sharply.

In her resignation from politics, Kelly O'Dwyer said she feared another miscarriage in Canberra, far from home. Her announcement is shocking for more than just party-political reasons, writes Emma A. Jane.