The 31-year-old James, a four-time NBA most valuable player, won two championships for the Miami Heat before returning to the Cavaliers in 2014, leading them to the NBA finals where they lost to the Golden State Warriors.

The Cavaliers reversed that result this season, bringing the first professional sports championship to the Ohio city since 1964.

Obama who is a fan of the Chicago Bulls said, that "By knocking off the warriors they cemented the 1996 Bulls as the greatest team of all time."

The team's visit came just minutes after president-elect Donald Trump's transition meeting with Obama. Trump's victory in Tuesday's election has sparked controversy among many professional athletes, including Cavaliers veteran Richard Jefferson.

Jefferson posted on Snapchat prior to the visit, implying that no NBA champion will wish to make the trip to the White House while Trump is in office.

WASHINGTON, DC - NOVEMBER 10: President Barack Obama and Vice President Joe Biden speak during the Cleveland Cavaliers visit to the White House to celebrate their 2016 NBA Championship on November 10, 2016 in Washington, DC. NOTE TO USER: User expressly acknowledges and agrees that, by downloading and or using this photograph, User is consenting to the terms and conditions of the Getty Images License Agreement. Mandatory Copyright Notice: Copyright 2016 NBAE (Photo by Ned Dishman/NBAE via Getty Images)

WASHINGTON, DC - NOVEMBER 10: U.S. President Barack Obama and Vice President Joseph Biden pose for photos with members of the Cleveland Cavaliers during a South Lawn event November 10, 2016 at the White House in Washington, DC. President Obama hosted the Cavaliers to honor their 2016 NBA championship. (Photo by Alex Wong/Getty Images)

LeBron James, star of the 2016 NBA basketball championship team the Cleveland Cavaliers, takes a selfie while the team is being honored by U.S. President Barack Obama at the White House in Washington November 10, 2016. REUTERS/Kevin Lamarque

WASHINGTON, DC - NOVEMBER 10: President Barack Obama and Vice President Joe Biden speak during the Cleveland Cavaliers visit to the White House to celebrate their 2016 NBA Championship on November 10, 2016 in Washington, DC. NOTE TO USER: User expressly acknowledges and agrees that, by downloading and or using this photograph, User is consenting to the terms and conditions of the Getty Images License Agreement. Mandatory Copyright Notice: Copyright 2016 NBAE (Photo by Ned Dishman/NBAE via Getty Images)