MILAN - More than 80 people were being evacuated from a migrant rescue ship on Tuesday, capping a drama that saw 15 passengers jump into the sea to escape deteriorating conditions aboard and spurred Spain to dispatch a naval ship in a bid to end a weekslong humanitarian crisis with Italy.

Sicilian prosecutor Luigi Patronaggio ordered the seizure of the ship off Italy's southernmost island of Lampedusa - and the immediate evacuation of its passengers - after he boarded the vessel and met with port authorities as part of an investigation into possible kidnapping charges resulting from the refusal of hard-line Interior Minister Matteo Salvini to allow the migrants to get off the Spanish humanitarian ship named the Open Arms, the news agency ANSA reported.

鈥淔inally, the nightmare ends and 83 people on board will receive immediate assistance on land,鈥 Open Arms said on Twitter. Hours later, migrants and crew celebrated as the rescue ship docked in Lampedusa. The migrants then walked one- by-one down a gangplank to land.

The rescued passengers have been on the Spanish-flagged charity ship since they were plucked from the Mediterranean 19 days ago.

Even after six countries stepped forward to take the migrants and Italy's governing coalition imploded partly because of the crisis, Salvini had refused to open Italian ports.

The minister staved off previous investigations resulting from other migrant standoffs and tweeted that he wasn't worried about the prospect of criminal charges.

鈥淚 am not afraid, I am proud to defend the borders and security of my country,鈥 Salvini wrote.

Earlier Tuesday, Spain's caretaker Socialist government sent a navy ship to escort the Open Arms back to a Spanish port after more than a dozen of the migrants jumped into the sea within view of Lampedusa, desperate to flee overcrowded and deteriorating conditions on the vessel following their rescue off Libya. Those who jumped overboard were quickly picked up by Italian ships.

Until the action by the Italian prosecutor, the Spanish move was the first concrete signal promising an end the humanitarian crisis involving the Open Arms.

鈥淎fter analyzing all the options, this is the most adequate and the one that would allow resolving within this week the humanitarian emergency on board the Open Arms,鈥 the Spanish government said in a statement.

The migrants on the Open Arms were tantalizingly close to Lampedusa but forbidden by Salvini to disembark. The captain had previously told Italian authorities the crew of 17 was no longer able to maintain control, and they described the situation as 鈥渄esperate.鈥

After one Syrian national jumped and was rescued and brought to shore on Lampedusa, two more groups followed his lead. They were likewise ferried to land and spared a return to the ship.

Video showed people in life vests floating in the sea, some in groups and some individually, with a coast guard vessel nearby and rubber dinghies manoeuvring to pluck them to safety.

Dozens of others have been evacuated in recent days for medical reasons or because they are minors. Officials said tensions on board were running high, with fights breaking out among the migrants.

The temporary confiscation of the rescue ship by the prosecutor 鈥渋s a cost that Open Arms assumes to secure that the people on board can be assisted,鈥 said the Spanish NGO's founder, Oscar Camps, on Twitter.

鈥淲e consider indispensable prioritizing their health and security in this humanitarian emergency,鈥 he wrote.

Spain said it would take three days for its navy ship, the Audaz, to reach Lampedusa from the Spanish port of Rota, and it wasn't immediately clear how long it would take to escort the smaller Open Arms vessel to the Spanish island of Mallorca, where it is set to dock in Palma de Mallorca.

Emilio Damia Marques, the commander of the Audaz, told Spanish public broadcaster TVE fromRota that his ship, carrying 62 people including a doctor, expected to arrive at the Italian island byFriday afternoon.

Italian Transport Minister Danilo Toninelli welcomed Spain's move to help resolve the crisis involving the Open Arms, operated by a nongovernmental humanitarian agency.

鈥淕ood news, finally the by-now unsustainable situation on board the NGO ship could have a solution that protects the people on board for 19 days by now, and not leave Italy alone,鈥 he said.

The Open Arms sailed within a few hundred meters of Lampedusa last week after Salvini's ban on private rescue boats entering Italy's waters was overturned by a court. Salvini has appealed the ruling and warned that his ban on docking still held.

Meanwhile, the Norwegian-flagged Ocean Viking, which is operated by two French humanitarian groups and has 356 rescued migrants aboard, has been sailing between Malta and the Italian island of Linosa as it waits for a port of safety to be assigned.

Italy's standoff over the Open Arms has further raised tensions in the country's failing ruling coalition, as Cabinet members from the 5-Star Movement, including the defence and transport ministers, increasingly question the actions over the migrants by Salvini, leader of the right-wing League party.

Toninelli said other European countries were turning their backs on Italy 鈥渁nd there is one person responsible: Matteo Salvini, who has weakened the government and as a consequence our position in Europe.鈥

----

Parra reported from Madrid.