CHARLOTTE, N.C. (AP) — The Charlotte Hornets have named Charles Lee as their next head coach.

The 39-year-old Lee joins the Hornets after serving as the Boston Celtics top assistant coach. Lee will complete the Celtics’ playoff run before joining the Hornets on a full-time basis. Lee spent five seasons under Mike Budenholzer before joining the Celtics last summer.

Lee replaces Steve Clifford, who announced before the end of the regular season that he was stepping down as Hornets coach after two seasons in his second stint with the club. The Hornets finished 21-61 this season, tied with the Portland Trail Blazers for the league’s third-worst record.

“The Hornets have a talented young core of players and I’m excited about our future and what we can build here,” Lee said. “There are few places as passionate about basketball as the Carolinas, and I look forward to coming to Charlotte and getting to work.”

Lee inherits a team that hasn’t been to the playoffs in the last eight seasons, the longest drought in the league. Charlotte hasn’t won a playoff series in 22 years, a stretch that included more than a decade with NBA great Michael Jordan as the owner.

Jordan sold the Hornets to Rick Schnall and Gabe Plotkin last year.

The co-owners have been busy since, replacing general manager Mitch Kupchak — who also stepped down — with Jeff Peterson.

Lee will work alongside Peterson to oversee a rebuild.

“His high character and his ability to connect with players while also instilling a culture of accountability will serve us well as we construct a competitive team built for long-term success,” Peterson said in a release. “Charles possesses a championship pedigree with a wide range of basketball knowledge and NBA experience, has a tremendous work ethic and is a great communicator. He shares our vision for this organization, and I look forward to partnering with him in building something special here in the Carolinas.”

The Hornets traded Gordon Hayward to Oklahoma City, Terry Rozier to Miami and P.J. Washington to Dallas before the deadline in moves that brought Tre Mann, Vasa Micic, Grant Williams, Seth Curry and Davis Bertans to Charlotte.

The Hornets have some young talent to build around, including last year’s No. 2 overall pick Brandon Miller, 2022 All-Star point guard LaMelo Ball and center Mark Williams, although the latter two have struggled to stay on the court because of injuries. Miller averaged 17.3 points per game as a rookie while shooting 37% from 3-point range.