(VALLETTA, Malta) — A Maltese special operations team on Thursday boarded a tanker that had been hijacked by migrants it rescued at sea, and returned control to the captain, Malta’s armed forces said.

The tanker was being escorted to a Maltese port, where the migrants will be turned over to police for investigation, they said.

Authorities in Italy and Malta on Wednesday said that the migrants had hijacked the Turkish oil tanker El Hiblu 1 after it rescued them in the Mediterranean Sea, and forced the crew to put the Libya-bound vessel on a course north toward Europe.

Italy’s interior minister, Matteo Salvini, said the ship had rescued about 120 people and described what happened as “the first act of piracy on the high seas with migrants” as the alleged hijackers.