After 19 years of negotiations, a historic agreement has been reached to protect the world’s oceans and ensure all the world’s people can benefit from the high seas while also protecting marine life.

Wording on the High Seas Treaty agreement was reached at the United Nations in New York City on Saturday after a marathon 38 hours of talks following a process that began in 2004. 

The landmark treaty, which has not yet been ratified, aims to put 30% of the world’s ocean area into protected areas to preserve marine life and allow it to recuperate. More than 8% of marine species are now on the International Union for Conservation of Nature’s “Red List” meaning they’re threatened or endangered. 

That includes some species of whales, dolphins, manatees, tuna, basking sharks and turtles.

Here’s what to know about the new High Seas Treaty:

What is the new treaty for the world’s oceans?

An agreement on the High Seas Treaty, which has been under discussion since 2004, was reached on Saturday at UN headquarters in New York. 

Costal nations’ legal authority extends to 200 nautical miles off their shores, an area known as the “exclusive economic zone.” The treaty would not interfere in those areas, but instead would cover the two-thirds of Earth’s open oceans considered international waters.

Negotiations had taken decades in part due to disagreements over funding, fishing and mineral rights.