BOSTON — James Harden scored 32 points, including Houston’s final eight, and the Rockets snapped the Boston Celtics’ 14-game home winning streak with a 102-98 victory Friday night.

Michael Beasley added 18 points and eight rebounds, and Dwight Howard finished with 12 points and 12 rebounds for Houston, which has won three straight, all on the road.

The Rockets led by as many as 11 in the third quarter before seeing that cushion cut to two points in the fourth.

Isaiah Thomas led the Celtics with 30 points, but had six turnovers. Jared Sullinger added 24 points and 12 rebounds.

Boston struggled, shooting 37 percent and committing 15 turnovers. The Celtics also were outscored 60-46 in the paint in their first home loss since Jan. 6.

Coach Brad Stevens made an adjustment late in the third quarter, inserting rookie Terry Rozier into the lineup. Rozier started the fourth quarter and was active, knocking down an early 3-pointer and handing out three assists before heading to the bench with about four minutes to play.

It helped lessen the damage done by Beasley, who scored 10 of Houston’s first 12 points of the quarter.

The Rockets continued to be aggressive, and a free throw by Harden provided a 97-91 lead with 2:33 remaining.

It stayed that way when a missed step-back jumper by Harden led to an inadvertent whistle during a scramble for the rebound with 1:11 left.

An ensuing jump ball between Howard and Sullinger was controlled by Houston, and Harden knocked down a 19-footer with less than a minute left that got the lead back to eight.

Both teams were flat early. But Houston cobbled together a 13-4 run late in the first half and led by three at the break.