The Nets squared off with the Bobcats in Brooklyn Wednesday night, and found themselves with a fight on their hands.

Despite being in control for most of the game, the Nets couldn’t break the game open. And, after Charlotte hung around through the first three quarters, the Bobcats took a three-point lead midway through the fourth, and appeared primed to steal a game.

But that’s when Deron Williams decided that wasn’t going to happen. Williams scored the next seven points to give the Nets back the lead for good, and wound up with 25 points and eight assists to lead Brooklyn to a 104-99 win over the Bobcats in front of 17,222.

“I was just out there playing,” Williams said. “I just kind of took what the defense gave me. They made their run, and we needed to make one back.

“I happened to be a big part of that, but it could’ve been any of us.”

The Nets (35-31) moved into sole possession of fifth place in the Eastern Conference, a half-game ahead of the idle Wizards, and also remained 2 ¹/₂ games behind the Atlantic Division leading Raptors in third and two games behind the Bulls in fourth. The Nets also pushed their home winning streak to 10 games.

It wasn’t easy, though, as the pesky Bobcats (33-36) who, behind 18 points and 12 rebounds from Al Jefferson, stayed in the game despite the Nets dictating the action, as exhibited by their 35 trips to the foul line.

They also forced 15 Bobcats turnovers that led to 21 points, including five costly ones in the fourth quarter.

“The turnovers were the biggest difference in the game,” Bobcats coach Steve Clifford said. “If we’re going to turn the ball over 15 times, it’s going to be hard for us to beat anybody.”