Prince William and Kate took in an NBA game Wednesday night, sitting courtside at the Boston Celtics game.

After kicking their trip off at Boston City Hall to help Mayor Michelle Wu light Boston buildings and landmarks green in honor of William's Earthshot Prize initiative, the couple headed to TD Garden for a basketball game between the Boston Celtics and Miami Heat.

Kate, wearing a royal blue blazer, and William, wearing a blue button-down shirt and dark blue blazer, sat courtside at the game alongside Wu and Massachusetts Governor-elect Maura Healey and Boston Celtics owners Steve and Judy Pagliuca and Wyc Grousbeck and his wife Emilia Fazzalari.

PHOTO: Mayor of Boston Michelle Wu, Governor-elect Maura Healey, Britain's Prince William, Catherine, Princess of Wales and Emilia Fazzalari wife of Celtics owner Wyc Grousebeack, attend the Boston Celtics and Miami Heat game in Boston, Nov. 30, 2022.
Brian Snyder/Reuters
Mayor of Boston Michelle Wu, Governor-elect Maura Healey, Britain's Prince William, Catherine, Princess of Wales and Emilia Fazzalari wife of Celtics owner Wyc Grousebeack, attend the game between the Boston Celtics and the Miami Heat at TD Garden in Boston, Nov. 30, 2022.

William and Kate's trip to Boston is their first trip to the United States in eight years, and their first international trip as the Prince and Princess of Wales, following the death of Queen Elizabeth II in September.

PHOTO: Mayor of Boston Michelle Wu, Governor-elect Maura Healey, Britain's Prince William, Catherine, Princess of Wales and Emilia Fazzalari, wife of Celtics owner Wyc Grousebeck, attend the Boston Celtics Miami Heat game in Boston, on Nov. 30, 2022.
Brian Snyder,POOL/AFP via Getty Images
Mayor of Boston Michelle Wu, Governor-elect Maura Healey, Britain's Prince William, Catherine, Princess of Wales and Emilia Fazzalari, wife of Celtics owner Wyc Grousebeck, attend the NBA game between the Boston Celtics and the Miami Heat at TD Garden in Boston, on Nov. 30, 2022.

The couple received loud cheers at the Celtics game, but also some booing after they were shown on the Jumbotron. At one point, there were also cheers of "USA" from the crowd after William and Kate appeared on the screen, according to Chris Ship, royal editor for ITV News, who attended the game.

William and Kate are visiting Boston to attend Fridays' awards ceremony for the Earthshot Prize, an initiative William launched in 2019 to create solutions for environmental problems.

During the Celtics game, promos for the Earthshot Prize were shown on the Jumbotron and a 15-year-old climate activist from Massachusetts was recognized as the game's "Hero Among Us."

William and Kate were spotted speaking with the young climate activist for a few minutes on the court after she was recognized, and also spoke with fans throughout the game.

PHOTO: Governor-elect Maura Healey, Britain's Prince William, and Catherine, Princess of Wales attend the NBA game between the Boston Celtics and the Miami Heat, at TD Garden in Boston, Nov. 30, 2022.
Brian Snyder/Reuters
Governor-elect Maura Healey, Britain's Prince William, and Catherine, Princess of Wales attend the NBA game between the Boston Celtics and the Miami Heat, at TD Garden in Boston, Nov. 30, 2022.

Attending an NBA game has become something of a tradition for William and Kate during their visits to the U.S.

When the couple visited New York in 2014, their most recent trip, they attended a Brooklyn Nets game, during which they met Beyoncé and Jay-Z.

While not an official royal tour, William and Kate's trip to Boston is seen as an important one, both because the Earthshot Prize is a passion project for William and because this is a transitional time for the monarchy under William's father, King Charles III, according to ABC News royal contributor Victoria Murphy.

"I think this trip will be an interesting one because the monarchy has had a lot of criticism in the past few years," said Murphy. "The picture is very different to when William and Kate visited the U.S. in 2014, so this trip could be seen as an opportunity to gauge how the U.S. public feels about the working royals and the monarchy right now and what that might mean for the royal family globally."