The remaining 215 will be distributed amongst Ireland, Germany, Luxembourg, Portugal and Romania.

The Norwegian-flagged rescue ship, the Ocean Viking, has been sailing between the island of Linosa and Malta for 14 days.

(Photo SOS Mediterranee via AP)

The ship is carrying mostly people from Sudan who have been rescued from the sea and includes more than 100 children, 90 of them unaccompanied, Médecins Sans Frontières have said.

In a statement, MSF said that EU governments "must stop these prolonged delays and ad hoc petty negotiations."

(Photo SOS Mediterranee via AP)

Jay Berger, MSF Project Coordinator on board the Ocean Viking, said there is relief that the ordeal for those on the ship is finally over.

"Was it necessary to impose two weeks of excruciating wait for rescued people to be disembarked? These are people who have fled from desperate circumstances in their home countries and suffered horrific abuses in Libya", he said.

The EU Commissioner for Migration, Dimitris Avramopoulos, has tweeted that a solution has been found for all those on board and praised the countries who agreed to relocate the migrants.

Welcome that a solution for the persons aboard #OceanViking has been found and that all will be relocated. Commend @MaltaGov and @JosephMuscat_JM for solidarity and European approach. Praise 🇫🇷 🇩🇪 🇵🇹 🇷🇴 🇱🇺 🇮🇪 who agreed to relocate. These commitments must now be honoured swiftly.