ORLANDO, Fla. — DeMar DeRozan scored 21 points and Kyle Lowry added 17 points, 11 assists and seven rebounds to lead the Toronto Raptors to a 117-104 victory over the Orlando Magic on Wednesday night.

Pascal Siakam had 14 points, including 10 in the final five minutes as the Raptors pulled away for their 11th win in 13 games. Jakob Poeltl added 13 points and Fred Van Fleet had 12.

Evan Fournier and Mario Hezonja scored 17 apiece for Orlando, which has lost seven straight games. Nikola Vucevic added 14 points and Aaron Gordon had 11 points and 10 rebounds for the Magic.

Both teams struggled to get defensive stops the entire game, but the Raptors finally dug in and defended for a five-minute window of the fourth quarter that put them in charge. Leading 97-96, Toronto got stops on seven straight possessions, including two turnovers and a blocked shot, and outscored the Magic 13-2 in the run.

Siakam’s layup gave the Raptors a 110-98 lead with 3:20 left. It was one of four fast-break layups or dunks the Raptors had in that run.

Orlando never got closer than nine points the rest of the game.

The Raptors, who shot 63.4 percent in building a 69-63 halftime lead, went cold to start the third quarter and the Magic finally caught them when Jonathon Simmons buried a 3-pointer to put Orlando up 75-74.

Toronto finally got a field goal when Lowry drained a 3-pointer at the 8:34 mark and the teams played even the rest of the quarter. Back-to-back 3-pointers by Hezonja and Shelvin Mack in the final 40 seconds brought Orlando within 90-89 at the end of the period.

The first half was an offensive track meet and defense was an afterthought for both teams. Toronto held a 69-63 halftime edge, despite allowing Orlando to shoot 58 percent (25 of 43) from the field, including eight 3-pointers.

PISTONS 110, BUCKS 87: Andre Drummond had 15 points and 16 rebounds, and Detroit dominated inside in a victory over visiting Milwaukee.

The Pistons outscored Milwaukee 56-34 in the paint and had 15 offensive rebounds in the first half. Blake Griffin finished with eight points, nine rebounds and seven assists for Detroit, which won for only the second time in eight games.

HAWKS 107, PACERS 102: Dennis Schroder scored seven of Atlanta’s final eight points, and the Hawks survived a late Indiana comeback to beat the visiting Pacers.

John Collins scored 16 points for the Hawks, who led by 23 before holding on late to end their four-game losing streak.

Bojan Bogdanovic led Indiana with 26 points.

WARRIORS 109, WIZARDS 101: Golden State won for the seventh time in eight games as Kevin Durant scored 32 points, Stephen Curry added 25, and the Warriors limited Bradley Beal to eight in a victory at Washington.

Klay Thompson finished with 13 points for the Warriors, and Draymond Green contributed 11 points and 11 assists.

NOTES

76ERS: Philadelphia signed forward Ersan Ilyasova after he was waived by the Atlanta Hawks.

Ilyasova played 53 games for the 76ers in 2016-17 before he was traded to Atlanta at last year’s deadline.

He averaged 10.9 points and 5.5 rebounds in 46 games this season for Atlanta, including 40 starts.

LAKERS: Los Angeles waived veteran guard Corey Brewer and recalled big man Thomas Bryant from its G League affiliate.