Joe Biden
President Joe Biden said he gave everything for his country in a bittersweet farewell speech at the party's convention in Chicago. AFP

An emotional US President Joe Biden passed the torch to Democratic nominee Kamala Harris with a hug on Monday, saying he gave everything for his country in a bittersweet farewell speech at the party's convention in Chicago.

"America, America, I gave my best to you," the 81-year-old Biden said, quoting a patriotic hymn during a nearly hour-long address that ran through his achievements while urging voters to back his vice president against Donald Trump in November.

Harris joined him on stage after the speech and the pair embraced, as the crowd gave Biden a rapturous reception following his stunning decision less than a month ago to drop out of the 2024 White House race.

In a remarkable turnaround, Harris has reenergized the party and wiped out Republican rival Trump's lead in the polls, but Biden insisted that he was not bitter about stepping aside.

Instead, as he contemplates the imminent end of a five-decade political career, he said that he had done what he thought best to ensure that his nemesis Trump does not return to the Oval Office.

"I love the job, but I love my country more. I love my country more," said Biden. "And all this talk about how I'm angry at all those people who said I should step down -- that's not true."

Both Biden and Harris appeared to wipe away a tear as the US leader won a huge four-minute ovation when he first took to the stage, following an introduction by First Lady Jill Biden and his daughter Ashley.

Several members of the audience were also in tears as Biden made his farewell speech, before leaving the stage to the strains of the song "Higher Love."

And Harris had earlier made a surprise appearance -- Democratic nominees don't normally speak until the final day of the convention -- to heap lavish tribute on her boss.

"I want to kick us off by celebrating our incredible president Joe Biden," said Harris, who was wearing a tan suit and took to the stage to Beyonce's "Freedom."

"We are forever grateful to you."

It was undoubtedly a difficult swan song for Biden, but he insisted he would be the "best volunteer" for Harris's campaign -- knowing perhaps that his legacy depends on her beating Trump.

But he couldn't quite let go of the presidency, with his speech focusing more on his own record in office than the future under a President Harris.

Biden listed his proudest achievements including on the economy and health care, but above all for healing the "soul of America" after Trump's time in office and the pro-Trump January 6, 2021 Capitol riot.

"Donald Trump calls America a failing nation... He says we're losing. He's the loser," he said, also referring to Trump as a "convicted felon" after the Republican was found guilty of doctoring business records to cover up hush money payments to a porn star.

Despite his low popularity ratings and the debate debacle against Trump that led him to step aside, Biden again insisted he'd given his all.

"I made a lot of mistakes in my career, but I gave my best to you," he said.