Ryan Gomes scored 27 points, the most by a Timberwolves player this season, and Minnesota snapped a 15-game losing streak by beating the Denver Nuggets 106-100 Sunday night.

Corey Brewer and Jonny Flynn each scored 16 points in helping Minnesota rally from 17 points down in the first half and register their first win since a season-opening victory against New Jersey. It was also their first road win of the season.

Carmelo Anthony matched a season-high with 19 points in the first quarter and finished with 32 but could not prevent Denver's first loss to Minnesota in the last 11 meetings. The defeat ended the Nuggets' regular season home winning streak at 17 games.

Kenyon Martin added 16 points and 14 rebounds and Chauncey Billups had 14 for the Nuggets, who lost for the first time in eight home games this season.

Down by as many as 17 points in the first half and trailing 64-50 at the break, Minnesota rallied with a 14-0 run to start the third quarter, pulling into a 64-all tie on Flynn's driving layup with 8:55 left in the period.

The Nuggets were held to 12 points on 4 of 19 shooting from the floor in the third, a season-low for points in a quarter. After a layup by Al Jefferson, the Timberwolves pulled ahead 81-76 going into the fourth quarter.

Minnesota extended its lead to 88-80 when Wayne Ellington hit a 3-pointer with 9:27 left.

The Nuggets cut the deficit to 96-92 on Martin's tip-in with 3:05 remaining but Brewer completed a three-point play on the Timberwolves' ensuing possession.

Denver again got within four points on Anthony's layup with 51.6 seconds left but the Timberwolves made five of six free throws down the stretch, including two each by Brewer and Flynn, to seal their first win against Denver since a 99-94 victory in Minnesota on Feb. 14, 2007.

NOTES: Anthony also scored 19 points in the fourth quarter against Portland on Oct. 29 ... The Nuggets last lost a regular season home game on March 9 against Houston. Their home winning streak started March 11 against Oklahoma City. ... With Denver's loss at the Pepsi Center, Phoenix is the only NBA team without a home loss this season ... The previous scoring high by a Timberwolves player this season was 24 by Oleksiy Pecherov on Nov. 11 against Boston. ... With the win, Minnesota avoided tying the franchise record longest losing streak (16).