The NBA announced Thursday that 11-time Grammy winner Pharrell and his hip-hop-rock band N.E.R.D will headline the halftime show at the 2018 NBA All-Star game in Los Angeles next month.
Fergie, who has eight Grammys, will sing "The Star-Spangled Banner" prior to tip-off.
Canadian rockers Barenaked Ladies will perform the national anthem of their home country.
The Feb. 18 game will air live at 8 p.m. Eastern on TNT from the Staples Center.
It will be seen in more than 200 countries.
Pharrell and the band, which released its fifth studio album last month, will perform a medley of chart-topping hits.
Fergie released her second full-length album, "Double Dutchess," and a companion visual album in September.
She is a host of the new Fox show "The Four: Battle for Stardom."
Kevin Hart will open the night.