Barack Obama endorses Joe Biden for president

Barack Obama endorsed Joe Biden for president in a video on Tuesday. Biden was left as the presumptive Democratic nominee after U.S. Senator Bernie Sanders bowed out of the race.

"Choosing Joe to be my vice president was one of the best decisions I ever made, and he became a close friend," the former U.S. president said in his video endorsement. "And I believe Joe has all the qualities we need in a president right now."

With the former Democratic presidential candidates now rallying behind him, Biden can look comfortably towards the Democratic National Convention, which had been postponed until August due to the COVID-19 pandemic, before the general election in November.

Obama and Biden are close friends from their two terms in the White House, when Biden served as vice president. Biden leaned heavily on his affiliation with the former president throughout the Democratic primary, framing his pitch as an extension of Obama’s presidency. In recent weeks he has told donors he's been in touch with Obama about his vice-presidential pick.

The endorsement marks Obama's return to presidential politics more than three years after leaving the White House. He rarely talks directly about his successor, President Donald Trump, and avoided intervening in the Democratic primary. The field at one point spanned nearly two dozen candidates and Obama offered private counsel to anyone who asked it, but but made no efforts to bolster an individual campaign — including Biden’s.

Obama's endorsement, however, comes considerably earlier than in 2016. He backed Hillary Clinton in June of that year as her contentious primary fight with Vermont Sen. Bernie Sanders dragged on.

This cycle, the primary came to a much cleaner and quicker end, with Sanders endorsing Biden on Monday.

The former vice president now has the support of all of his former Democratic primary rivals except for Elizabeth Warren. The Massachusetts senator is expected to formally throw her support behind Biden soon, according to a person familiar with her plans.

RELATED: Former Senate staffer accuses Joe Biden of sexual assault

Two other prominent Democrats who have yet to formally endorse Biden are former President Bill Clinton and Hillary Clinton, the party’s 2016 nominee. Hillary Clinton has been in regular touch with Biden, including several times since Sanders dropped out of the race, according to an aide.

Obama has been an obvious shadow throughout the 2020 Democratic primary. Biden coined the “Obama-Biden administration” moniker when he’d talk about various accomplishments.

But he also tried to insist he was running as his own man, telling anyone who asked that he urged Obama not to endorse him out of the gate or even in the thick of the primary.

Obama’s tenure became a sort of punching bag for some presidential hopefuls in a primary fight that early on was defined by a debate over the need for generational and systemic change versus a return to normalcy after the Trump era.

Julian Castro, 45, pushed Biden repeatedly on whether he argued with Obama privately over deportations overseen by that administration. Pete Buttigieg, 38, and Beto O’Rourke, 47, subtly jabbed Biden – and by extension Obama -- by suggesting the party shouldn’t “return to the past.” Sanders and Warren suggested that the 2010 Affordable Care Act hadn’t gone far enough.

But Biden was a staunch defender of the Affordable Care Act and on the trail, often referred to himself as an “Obama-Biden Democrat." The former vice president called it “bizarre” for Democrats, even faintly, to attack Obama’s record.

RELATED: Bernie Sanders endorses former rival Joe Biden for president

The conversation around Obama's presidency shifted as the primary wore on. By the time voting began, Buttigieg was almost explicitly comparing his youthful bid to Obama’s 2008 campaign and the progressives were framing their health-care proposals as a way to build on Obama’s legacy. Billionaire candidate Mike Bloomberg, meanwhile, featured Obama in his ubiquitous advertising effort, much to Biden’s chagrin.

“You’d think Mike was Barack’s vice president,” Biden once quipped to donors.

For his part, Biden leaned even more heavily into Obama as primary voting began. Aiming at Sanders, the self-described “democratic socialist,” and billionaire Bloomberg, who’d been elected New York City mayor as a Republican, Biden said in a Feb. 21 interview with The Associated Press that “they’re not bad folks. They’re just not Democrats.”

Campaigning before increasingly diverse audiences in Nevada and South Carolina, Biden ramped up his recollections of when Obama tapped him for the ticket in 2008. Biden recalled Inauguration Day 2009, waiting for the train in his hometown of Wilmington, Delaware, “for a black man to pick me up … for the two of us to be sworn in as president and vice president of the United States.”

Often drawing nods and vocal affirmation from his audiences, Biden said he had thought of that day as a national victory over institutional racism. Now, in the Trump era, Biden calls that conclusion a mistake.

“I thought we could defeat hate,” he said, but, “it never goes away.“

On Feb. 29, Biden took the stage in South Carolina to celebrate a nearly 30-point victory that would propel him past Sanders and everyone.

He dusted off a line he’d used many times before: “I’m a proud Obama-Biden Democrat,” Biden said.

Obama was watching. His sideline approach nearing its end, he called his former vice president that night to congratulate him on his victory.

The Associated Press contributed to this story.