TORONTO — Three bad quarters and one good one was just good enough for the Toronto Raptors.
Kyle Lowry scored 19 points, Terrence Ross had 17 and the Raptors erased an 11-point deficit in the fourth period to beat Orlando 104-100 on Tuesday night, their ninth consecutive victory over the Magic.
"Where we want to go as a team, we can't be playing like that," Toronto coach Dwane Casey said of his team's slow and sloppy start. "Orlando outplayed us for three quarters."
DeMar DeRozan had 16 points and Lou Williams scored eight of his 14 in the fourth as the Eastern Conference leaders won their fifth straight game overall and improved to 7-1.
"It was a test of our character and we got the win," Raptors guard Greivis Vasquez said. "It wasn't pretty, stars didn't play the way we wanted them to play, but we got the second unit playing the right way."
Ross grabbed the rebound on a potential tying jump shot by Tobias Harris with 2 seconds left. Toronto has won its first five home games for the first time since 2003-04.
Evan Fournier scored 24 and Harris had 23 points and 13 rebounds for Orlando, which lost its second straight. The Magic haven't beaten Toronto since March 26, 2012, and have lost 10 of the past 14 meetings.
"It's very frustrating because we deserved to win that one," Fournier said. "We played great for three quarters."
Channing Frye scored 19 points and Nikola Vucevic had 18 for the Magic.
"That team, you can see they're coming together," Lowry said.
Amir Johnson and Patrick Patterson each had 12 points for Toronto. James Johnson led the Raptors with 10 rebounds.
With all five starters on the bench, the Raptors' second unit opened the fourth on an 11-0 run, capped by back-to-back 3-pointers from Williams and Patterson, to tie it at 83 with 9:49 remaining.
"They won the game," an appreciative Lowry said of Toronto's reserves.
Another 3 by Patterson at the 6:36 mark gave the Raptors their first lead since the opening quarter at 90-88, but Vucevic promptly tied it with a hook shot.
Frye put Orlando in front, 95-92, with his fifth 3 of the game at 4:27, but Ross answered with a tying 3 a minute later, his fourth of the night.
The Magic led 98-97 when Frye missed a 3 at 1:43. DeRozan was fouled at the other end and made both to put the Raptors in front. After a missed 3 by Fournier, Lowry added two more free throws to put Toronto up 101-98 with 1:05 left.
Harris brought the Magic within one with a layup, but Patterson made one of two at the line and Ross finished it with two more free throws after he was fouled grabbing the rebound on Harris' late miss.
Magic: Rookie G Devyn Marble (right shoulder) missed his second straight game, while G Victor Oladipo (facial fracture) and C Kyle O'Quinn (left ankle) remained sidelined. .... Orlando is 35-34 against Toronto.
Raptors: F Landry Fields (flu-like symptoms) was inactive. Rookie Bruno Caboclo was active for the first time this season. ... Toronto marked Remembrance Day by wearing camouflage jerseys, and honored four Canadian veterans at center court in a pregame ceremony.
Orlando shot 12 for 25 from 3-point range and extended its streak of games with at least one 3-pointer to 582. The Magic have hit at least one 3 in every game since March 17, 2007.
Patterson said he's not a fan of the T-shirt style camouflage jerseys the Raptors wore against Orlando, complaining that they're "tight" and "snug." Casey, however, said he's more concerned with results than appearance. "If we win with them, we can wear bikinis if we have to," Casey said.
Canadian tennis player Eugenie Bouchard, who lost the women's singles final at Wimbledon last summer, attended the game.
Raptors: Host Chicago on Thursday.
Magic: At New York on Thursday.