ORLANDO, Fla. (AP) -- Arron Afflalo had 20 points and 13 rebounds, Tobias Harris added 18 points and the Orlando Magic snapped a season-high 10-game losing streak with a 93-91 win over the Boston Celtics on Sunday night.
After several ties in the fourth quarter, Harris hit a pair of free throws with 10.1 seconds remaining to give Orlando the victory.
The win also ends 10-game regular-season losing streak to the Celtics.
Glen Davis added 17 points and Jameer Nelson 16 for Orlando.
Boston has lost nine straight on the road and 11 of 12 overall.
Jeff Green led the Celtics with 22 points, and Avery Bradley and Kris Humphries added 18 apiece. Rajon Rondo had six points and four assists in his second game back from a torn ACL.
Orlando scored the first basket of the third quarter to build a nine-point lead, but went cold and allowed Boston to reel off a 13-2 run and retake the lead, 61-57.
The Magic were able to steady themselves, and after three different ties in the first six minutes of the fourth, nudged back in front 82-79 on a pair of free throws by Afflalo.
Green tied it back up at 87 with two free throws of his own with 1:48 remaining. Then following a Magic miss, Rondo got free off of a screen and connected on 16-foot jumper to give the Celtics the lead again.
Afflalo tied it again at 89 with a layup. Then a Celtics' miss eventually led to Nelson being fouled on the other end and hitting two free throws that put the Magic up a basket at 91-89.
Coming out of a timeout, Green was fouled by Afflalo on a layup, but failed to hit the free throw to complete the three-point play. Orlando snared the rebound and called a timeout with 30.7 seconds to play.
Humphries fouled Harris during a scramble for a rebound and Harris calmly sank his two free throws with 10.1 seconds showing on the clock.
The Celtics had a final possession, but failed to get up a shot before time expired.
The Magic dominated the action underneath early on and took at 53-46 lead into halftime.
Orlando outscored Boston 35-20 in the second quarter and got 10 points apiece in the half from Afflalo and Harris. Kyle O'Quinn came off the bench to grab nine points and seven rebounds, which led to some easy putbacks.
The Celtics got 10 each from Bradley and Humphries, but had a scary moment late in the first quarter when Green slipped while attempting to contest a jumper by Afflalo. Green landed hard and awkwardly on his right knee, but was able to walk off on his own power after lying on the court for a few minutes.
He returned in the second quarter didn't show any effects while exploding for a dunk late in the half.