The Aquarius rescue ship enters the port of Valencia on June 17, 2018. - The 630 migrants whose rescue sparked a major migration row in Europe began disembarking in Spain after a turbulent week that saw Italy turn away the Aquarius ship. (Photo by Pau Barrena / AFP)        (Photo credit should read PAU BARRENA/AFP/Getty Images)
PHOTO: PAU BARRENA/AFP/Getty Images
The Aquarius rescue ship enters the port of Valencia on June 17, 2018. - The 630 migrants whose rescue sparked a major migration row in Europe began disembarking in Spain after a turbulent week that saw Italy turn away the Aquarius ship. (Photo by Pau Barrena / AFP) (Photo credit should read PAU BARRENA/AFP/Getty Images)
Now playing
02:00
Stranded migrants disembark in Spain
https://www.facebook.com/elin.k.ersson/videos/10155723956991274/
PHOTO: Elin Ersson/Facebook
https://www.facebook.com/elin.k.ersson/videos/10155723956991274/
Now playing
01:49
Swedish deportation halted by woman on jet
The ship operated by German aid group Mission Lifeline, carrying 234 migrants, docks at the Valletta port in Malta, after a journey of nearly a week while awaiting permission to make landfall, Wednesday, June 27, 2018.
PHOTO: Jonathan Borg/AP
The ship operated by German aid group Mission Lifeline, carrying 234 migrants, docks at the Valletta port in Malta, after a journey of nearly a week while awaiting permission to make landfall, Wednesday, June 27, 2018.
Now playing
01:51
German chancellor under pressure over migration
PHOTO: Giorgos Moutafis/CNN
Now playing
02:56
Brutal reality of immigrant life
dnt bittermann france 2nd generation immigrants_00013111.jpg
dnt bittermann france 2nd generation immigrants_00013111.jpg
Now playing
03:11
France's immigrants impacted by terror fight
anti immigrant movement in germany shubert pkg_00012602.jpg
anti immigrant movement in germany shubert pkg_00012602.jpg
Now playing
02:20
German anti-immigrant movement on the rise
uk refugee lifejackets soares pkg_00000000.jpg
uk refugee lifejackets soares pkg_00000000.jpg
Now playing
02:03
A graveyard of refugee lifejackets
Germany terror bigger picture ripley pkg_00013314.jpg
Germany terror bigger picture ripley pkg_00013314.jpg
Now playing
02:19
Many Germans no longer want migrants in their country
Leader of the Dutch Party for Freedom (PVV) Geert Wilders looks on after the resignation of two of his MPs after the weekly debate at the Parliament in The Hague on July 3, 2012. Hernandez and Kortenoeven, two of the PVV's 24 MPs, announced their resignation from the party today, saying they disagreed with autocratic leadership style.  AFP PHOTO / ANP / ROBIN UTRECHT   ***NETHERLANDS OUT***        (Photo credit should read ROBIN UTRECHT/AFP/GettyImages)
PHOTO: ROBIN UTRECHT/AFP/GettyImages
Leader of the Dutch Party for Freedom (PVV) Geert Wilders looks on after the resignation of two of his MPs after the weekly debate at the Parliament in The Hague on July 3, 2012. Hernandez and Kortenoeven, two of the PVV's 24 MPs, announced their resignation from the party today, saying they disagreed with autocratic leadership style. AFP PHOTO / ANP / ROBIN UTRECHT ***NETHERLANDS OUT*** (Photo credit should read ROBIN UTRECHT/AFP/GettyImages)
Now playing
00:46
Wilders calls Moroccan immigrants 'scum'
NORTH CHARLESTON, SC - FEBRUARY 17: U.S. President Donald Trump addresses a crowd during the debut event for the Dreamliner 787-10 at Boeing's South Carolina facilities on February 17, 2017 in North Charleston, South Carolina. The airplane begins flight testing later this year and will be delivered to airline customers starting in 2018.  (Photo by Sean Rayford/Getty Images)
PHOTO: Sean Rayford/Getty Images North America/Getty Images
NORTH CHARLESTON, SC - FEBRUARY 17: U.S. President Donald Trump addresses a crowd during the debut event for the Dreamliner 787-10 at Boeing's South Carolina facilities on February 17, 2017 in North Charleston, South Carolina. The airplane begins flight testing later this year and will be delivered to airline customers starting in 2018. (Photo by Sean Rayford/Getty Images)
Now playing
03:29
Sweden slams Trump for migrant comment
Now playing
04:24
Patrolling the world's deadliest migration route
PHOTO: Tormod Halvorsen/Instagram
Now playing
02:24
What led to riots in Sweden?
uk poles hate crime soares pkg_00000930.jpg
PHOTO: Reuters
uk poles hate crime soares pkg_00000930.jpg
Now playing
03:11
UK's Polish community targeted in hate crimes
Now playing
03:51
Libya: ISIS sees an opening on migrant route to Europe
nationalists invade brussels memorial phil black pkg_00002925.jpg
nationalists invade brussels memorial phil black pkg_00002925.jpg
Now playing
01:53
Right-wing nationalists invade Brussels memorial
German Chancellor Angela Merkel looks on during the G20 Summit in Hangzhou on September 4, 2016.
World leaders are gathering in Hangzhou for the 11th G20 Leaders Summit from September 4 to 5. / AFP / Johannes EISELE        (Photo credit should read JOHANNES EISELE/AFP/Getty Images)
PHOTO: Johannes Eisele/Getty Images
German Chancellor Angela Merkel looks on during the G20 Summit in Hangzhou on September 4, 2016. World leaders are gathering in Hangzhou for the 11th G20 Leaders Summit from September 4 to 5. / AFP / Johannes EISELE (Photo credit should read JOHANNES EISELE/AFP/Getty Images)
Now playing
01:39
Merkel's party defeated in Germany state election
(CNN) —  

After more than a week at sea, hundreds of migrants turned away by Italy danced and sang as their ships arrived in the Spanish port of Valencia on Sunday.

The 630 migrants had been rescued by the Aquarius last weekend off the coast of Libya, but Italy and Malta refused to let their ship into port.

The ship is operated by aid agencies Doctors Without Borders and SOS Mediterranee, and had at least 100 minors and seven pregnant women aboard.

The ship was held for two days between Malta and the Italian island of Sicily after the latter nation’s Interior Minister, Matteo Salvini, refused to allow it to dock.

A migrant on board the rescue ship Aquarius bound for Spain.
PHOTO: SOS Mediterranée
A migrant on board the rescue ship Aquarius bound for Spain.

After Spain offered to take them in, the ship started an 800-mile journey to Valencia along with two Italian ships sent to ease the overcrowding.

The first group of 274 migrants arrived at the Spanish port Sunday morning aboard the Italian Coast Guard ship Dattilo. The Aquarius arrived in port next, with the third vessel, the Orione, arriving at lunchtime.

The Spanish Red Cross said that it had attended to 28 men and one pregnant woman as well as three unaccompanied minors from the Dattilo. Five people also required wheelchairs, the charity said on Twitter, and it had been distributing first aid kits with food and water.

More than 2,300 people are meeting the ships, including 400 translators, 1,000 Red Cross volunteers and 600 police officers, local authorities said.

The Dattilo arrives at the Port of Valencia on June 17.
PHOTO: Pablo Blazquez Dominguez/Getty Images
The Dattilo arrives at the Port of Valencia on June 17.

France makes settlement offer

SOS Mediterranee posted footage on Twitter of migrants dancing and singing as they viewed the Spanish coast.

“Relief & happiness on board the #Aquarius as we see Spanish shores. … The end of a long and exhausting odyssey is close,” it said.

Doctors Without Borders, known by its French acronym MSF, tweeted that migrants on board the Aquarius had been “calm and pleased” to hear they would be arriving in Spain on Sunday morning.

In a separate tweet, MSF said the ship would be obliged to conduct search and rescue operations in the Mediterranean “for as long as European governments fail to fulfill their responsibilities.”

Some of the rescued migrants from the Aquarius will be allowed to settle in France, Spain’s deputy prime minister said Saturday.

France made the offer via its ambassador to Spain, Deputy PM Carmen Calvo said in a statement. In a telegram, Spain’s President, Pedro Sanchez, thanked French President Emmanuel Macron for his offer.

Macron had been critical of Italy’s refusal to accept the Aquarius migrants but later worked to smooth things over with Italy’s Prime Minister, Giuseppe Conte.

Italy’s warning

Matteo Salvini, Italy’s hardline interior minister and the leader of the anti-immigrant League party, was instrumental in blocking the Aquarius from docking this week in his country.

In a live Facebook post Sunday, Salvini was defiant.

“At this moment, the boat is arriving in Spain with 629 presumed refugees and so I thank the Spanish government. I hope they take in the other 66,629 refugees. We will not be offended if the French follow the Spanish, the Portugese and Maltese, we will be the happiest people on earth,” he said.

On Saturday, he had warned other ships carrying migrants as part of a humanitarian mission not to try to dock in Italy.

“While the Aquarius ship goes toward Spain, 2 other NGO ships with Dutch flags have arrived near the Libyan coast,” Salvini tweeted Saturday.

“We know that Italy does not want to be complicit in the business of clandestine immigration, and they will have to look for other ports to go to,” he said, without providing details about the Dutch-flagged ships.

Salvini has previously promised to expel half a million illegal immigrants from Italy. He’s also shared anti-immigrant memes on social media.

CNNE’s Vera Catano reported from Valencia and CNN’s Flora Charner reported from Atlanta. Susannah Cullinane wrote from Auckland, New Zealand. CNN’s Laura Smith-Spark and Valentina DiDonato also contributed to this report.