Pugh's swim down the entire length of the Hudson River took a month.

British endurance swimmer Lewis Pugh on Wednesday completed a 315-mile (500-kilometer) journey down New York's Hudson River, highlighting its successful decades-long cleanup as a beacon for other waterways.

"Fifty years ago, this was one of the most polluted rivers in the whole world," said Pugh, 53, who was appointed the first UN patron of the oceans a decade ago.

"We need to have clean, healthy rivers," he told reporters after completing the unassisted trip from the Hudson's mountain source all the way down to New York City.

He said that in New York's industrial past, the river would sometimes change color from day to day, depending on what dyes and other pollutants were dumped or ran off.

But after decades of action to clean up pollution, Pugh was able to safely swim down the river, a month-long feat he said will hopefully inspire others.

"They're going to be inspired by what happened here and say to themselves: 'If they can do that in the Hudson, surely we can do it in our river and our river can also be saved,'" he said.

Lewis Pugh arrives at the finish of his 315-mile Hudson river swim in New York.

Pugh has previously undertaken high-profile swims in Antarctica, the North Pole and the Red Sea to advocate for rivers clean enough to swim and fish in safely.

His Hudson River feat comes as from the around the globe are set to descend on New York to attend the annual UN General Assembly, during which a historic High Seas Treaty is to be formally signed.