Andray Blatche added 14 points for the Nets, in the midst of their longest winning streak since running off 14 in a row late in the 2005-06 season. A .500 team when they fired Avery Johnson late last month, Brooklyn is 9-1 under interim coach P.J. Carlesimo and has pulled within 1 1/2 games of the New York Knicks for the Atlantic Division lead.
The Nets dominated the fourth quarter again, pulling away for their sixth straight home victory.
Kyle Lowry scored 21 points for the Raptors, who have dropped two in a row but still have 10 wins in their last 15 games. Jose Calderon and Amir Johnson each finished with 15.
Mirza Teletovic added 10 points off the Nets' bench, keying a second-quarter hot streak that snapped Brooklyn out of a sluggish start.
After allowing 13 points to Phoenix and 11 to Indiana in its last two fourth quarters, Brooklyn quickly pulled away at the start of the final period in this one.
Blatche had three baskets and MarShon Brooks the other two in a 10-2 burst to open the quarter, with both contributing to one of the Nets' prettiest plays of the season that capped it.
Teletovic blocked a shot to trigger a fast break, with Brooks and Williams exchanging passes as they rushed up the floor before Williams threw a pass behind his back to a trailing Blatche, who put it in for a 93-78 advantage with 8:03 to play.
Lowry, who was expected to miss the second half after spraining his left ankle, brought the Raptors within eight, but seven straight points by the Nets reopened a 15-point advantage on Johnson's jumper with 3:52 to go, and a final flurry by Lowry was not enough.
The Nets improved to 15-0 against teams below .500 and are just two games back of Miami in the Eastern Conference standings.
It was tied at 27 after one, then Toronto built a 10-point lead as Brooklyn missed its first seven shots of the second quarter. The Nets ran off seven straight points, including Teletovic's first 3-pointer to get within 40-37.
The Raptors were still up by three before Teletovic made consecutive 3-pointers and a free throw, a seven-point run that gave the Nets a 52-48 lead with 24 seconds remaining in the half. It was 54-50 when the teams headed to the locker rooms.
The Nets opened some room when Williams, Johnson and Keith Bogans hit 3-pointers in an 11-3 spurt that gave them a nine-point lead in the third quarter, and they blew it open with a big run to start the fourth.
Notes: The Nets start a home-and-home series with the Hawks in Atlanta on Wednesday. The second game is in Brooklyn on Friday. ... The Raptors originally said Lowry would sit the remainder of the game after he was hurt, though he missed only the third quarter. ... The Nets are 3-0 against the Raptors this season.