LeBron James received congratulations from a number of peers in sports and otherwise after he captured his fourth NBA championship on Sunday.

Former United States President Barack Obama was among those to congratulate LeBron, hailing James as a superstar both on and off the court:

Obama has always been an avid basketball fan and ambassador for the game.

The 44th President of the United States also served as a form of counsel for LeBron and other leaders of the NBPA when they were grappling with how best to approach the restart after Jacob Blake was shot by police in Kenosha, Wisconsin in August.

Live and breathe the NBA?

🚨 Get viral NBA graphics, memes, rumors and trending news delivered right to your inbox with the Clutch Newsletter.

Via Dave McMenamin of ESPN.com:

The Los Angeles Lakers star, along with his good friend and the president of the National Basketball Players Association, Paul, sought the input of Obama after talks among the players about resuming the season stalled. The league found itself in that predicament after the Milwaukee Bucks chose not to play their first-round playoff game earlier that day — leaving their opponent, the Orlando Magic, and everyone else on the NBA campus in Florida caught off-guard by the unilateral decision — in order to protest the shooting of Jacob Blake, a Black man, by police Sunday in Kenosha, Wisconsin.

LeBron James and other stars around the league have tried to maintain focus on the importance of fighting for social justice off the floor.

James has also been especially active with his More Than A Vote campaign to empower underrepresented voters. Numerous athletes have joined him in the campaign.

LeBron James is one of the greatest basketball players in history. But Obama also emphasized his off-court contributions as a leader and role model in light of his most recent triumph on the hardwood.