DENVER -- Danilo Gallinari scored 27 points, Kenneth Faried had 19 and nine rebounds, and the Denver Nuggets beat the Houston Rockets 118-110 Wednesday night.
Jeremy Lin scored 22 points, and James Harden and Chandler Parsons had 21 each for the Rockets, who had their three-game win streak snapped. Houston's Omer Asik added 10 points and 18 rebounds.
The Nuggets have won three straight against Houston this season, and they've won five in a row overall. They finished the homer-friendly January schedule 12-3.
Denver trailed by three heading into the final period before taking control. Two 3-pointers by Gallinari and some missed shots by the Rockets sparked a 24-3 Nuggets run that gave the home team a 101-88 lead with 6:54 left.
The Rockets, who led by eight with a minute left in the third, missed six straight shots and committed six turnovers, which helped Denver take a big lead.
Houston started crawling back. A jumper by Lin -- the Rockets' first basket in more than five minutes -- and two 3-pointers by Carlos Delfino trimmed the lead to 101-95 with 4:55 left.
Gallinari answered with a corner 3-pointer to make it a nine-point margin.
Delfino's two free throws with 2:55 left made it a four-point game, but the Nuggets held on.
The Nuggets grabbed the early lead in the third before Houston took momentum and an eight-point lead. The Rockets seemed to be in control late in the period when Toney Douglas stole the ball from Andre Miller and Timofey Mozgov on consecutive possessions and scored on easy layups both times.
The Nuggets were able to claw back, and they trailed 86-83 heading into the fourth.
Harden had 13 points and Parsons scored 11 in the first half to help the Rockets take a one-point lead into intermission.
Andre Iguodala led the Nuggets with 12 first-half points, while Gallinari and Faried had 11 apiece before the break.
NOTES: Nuggets center JaVale McGee missed his second straight game with a sore left shin. An MRI performed Tuesday ruled out a stress fracture. ... The Rockets averaged 20 turnovers in the first two games against Denver this year. Harden had 13 of the 40 turnovers. ... The NBA acknowledged that the referees in Monday's game between the Pacers and Nuggets missed a foul call on Iguodala late in the game. With 2.2 seconds left and the game tied at 101, Iguodala was credited with a steal on Paul George, but the league said it should have been a foul. "Is that the same protocol? There are a lot of games that you lose in the last minute because of calls. Most of the time they balance out," Nuggets coach George Karl said.