Greenpeace will receive 2.7 million euros ($3 million) from Russia under a settlement reached between the Dutch state and Moscow, the environmental group said on Friday.

The agreement should end years of legal battles following the seizure by Russian authorities of a Dutch-flagged Greenpeace vessel, the Arctic Sunrise, in 2013 and the arrest of 30 people aboard.

Russian agents captured the Arctic Sunrise in international waters after a protest against an oil platform. Those on board were detained in Russian prisons for months and released shortly before the 2014 Sochi Olympics.