Six Russian sailors held hostage by pirates have been freed in Nigeria a month after they were captured in neighboring Benin.

Authorities had said pirates kidnapped six Russian sailors of the Panama-flagged container ship MSC Mandy near Benin in West Africa on the night of Jan. 1. The armed pirates reportedly plundered 24 crew members before leaving the ship with the captured sailors. Russian sailors have previously been targeted by African pirates off the coast of Benin, including three who were captured in 2016.