By Peter Brennan

The Sixers were reeling, and Tobias Harris pulled them back from the brink last night at the Wells.

He scored 34 points, including two big baskets in the final two minutes, as the 76ers beat the Brooklyn Nets 117-106.

The 76ers held the Nets to just 16 fourth-quarter points on 6-of-23 (26.1%) shooting.

“When we got together in the huddle before the fourth quarter, we said that we were going to have to hold them to under 20 points to win the game,” said Harris, who scored 24 points in the second half on 9-of-13 shooting.

Philly was 10 of 19 from the floor and took advantage of a three-guard lineup that Brooklyn was forced to use.

Ben Simmons had 20 points and 11 assists for the 76ers, who improved to 19-2 at home. On the road, the 76ers are 7-14 and have lost six straight games, leaving them in the sixth spot in the Eastern Conference standings.

Meanwhile, Brooklyn has lost nine of its last 11 overall and six straight away from home. The Nets were led by Spencer Dinwiddie’s 26 points and eight assists. Jarret Allen had 17 points.

“That’s been the issue for us all year,” Nets head coach Kenny Atkinson said. Not being able to score in the fourth quarter efficiently. It follows a trend. We played well for three quarters and had a ton of good looks. We were getting to the rim, but we weren’t finishing.”

Neither side was able to gain complete control of the game, with the largest lead being a seven-point Brooklyn advantage late in the first half.

Harris, however, gave the Sixers offensive life in the second half. With the score 106-104 with two minutes to play, Harris hit a leaning 3-pointer that rattled in just as the shot clock ran out that proved to be a back-breaker.

“I think every shot I throw up is going in,” Harris said. “But when I saw it go in, I was happy.”

Josh Richardson had 15 points and Furkan Korkmaz added 15 off the bench. Al Horford had 14 points and eight rebounds for the Sixers.

The Nets received 15 points from Taurean Price and 14 from Kyrie Irving, who struggled in just his third game back from right shoulder impingement in going 6 of 21 from the floor and recording a minus-29 overall.