President Joe Biden delivered his farewell address to world leaders at the United Nations General Assembly on Tuesday, seeking to burnish his foreign policy legacy amid international turmoil.

“This is the fourth time I’ve had the great honor speaking to this assembly as president of the United States,” Biden said as he began his remarks. “It will be my last. I’ve seen a remarkable sweep of history.”

Biden also took a moment, near the end of his speech, to poignantly reflect on his decision to end his campaign for reelection.

“There’s so much more I want to get done,” Biden said. “As much as I love the job, I love my country more. I decided after 50 years of public service, it’s time for a new generation of leadership to take my nation forward.”

“My fellow leaders, let us never forget, some things are more important than staying in power. It’s your people,” he said, prompting applause. “It’s your people that matter the most. Never forget, we are here to serve the people, not the other way around.”Even though Biden came into office with decades of foreign policy experience, he leaves behind a mixed record.

Biden touted his administration’s rebuilding of alliances, saying when he came into office he was “determined to rebuild my country’s alliances and partnerships to a level not previously seen.”

“We did just that,” Biden said.But the two wars that started under his administration have no clear end in sight.

His presidency is winding down as the conflict in Ukraine continues to rage and the risk of an all-out war between Israel and Lebanon increases.