TORONTO -- DeMar DeRozan scored 25 points while Kyle Lowry had 23 points and nine assists to lead the Toronto Raptors to a 104-99 victory over the Brooklyn Nets on Tuesday.

Terrence Ross and Patrick Patterson were solid off the bench, scoring 11 points apiece, while Bismack Biyombo had a team-high 10 rebounds for Toronto (42-20).

Brook Lopez scored 35 points to top the struggling Nets (18-46).

The Raptors were coming off a 113-107 loss to Houston, coughing up an 18-point lead down the stretch in their first defeat at home in more than two months.

Their 12-game franchise-best winning streak at the ACC had begun coincidentally with a 91-74 win over the Nets on Jan. 6.

For the better part of three quarters Tuesday, the Nets looked poised to turn the tables on Toronto. The Nets -- second last in the Eastern Conference -- led by as many as 16 points before the Raptors clawed their way back into the game late in the third. They'd cut Brooklyn's lead to 80-78 going into the fourth quarter.

The Raptors lit it up with four three-pointers in the first three minutes of the fourth quarter, and a Patterson basket capped a 24-2 run that gave Toronto a 12-point lead. Biyombo had the Air Canada Centre roaring when he stole the ball off Lopez and then took a pass from Cory Joseph to finish with a massive dunk for a 14-point lead with 6:51 to play.

The Nets answered with a run of their own, cutting Toronto's lead to just three points with 3:14 to play. Lowry finally put the game away for good with a floating jumper with 38 seconds to play.

Biyombo was strong on the defensive end of Brooklyn's final possession -- earning a hand slap from the team's global ambassador Drake as he subbed out of the game in the final seconds -- to seal the victory.

The Raptors rested Luis Scola for the night, earning Jason Thompson his first start since Toronto signed him last week. The Raptors shot 55 per cent in the first quarter and took a 28-23 lead into the second.

They could do little right in a second quarter that saw them outscored 35-14 by the Nets, and when Lopez hit a floating jumper at buzzer to signal halftime, the basket gave Brooklyn a 58-42 lead.

The Raptors host Atlanta on Thursday, and Miami on Saturday, before wrapping up their seven-game homestand against the Chicago Bulls on Monday.