Sacramento, CA (SportsNetwork.com) - Brook Lopez had 22 points and six rebounds as the Brooklyn Nets held off the Sacramento Kings 103-100 on Wednesday night.

Brooklyn led by as many as 23 in the first half before the Kings trimmed the deficit to two late in the fourth quarter, but the Nets were able to stave them off down the stretch.

Jarrett Jack posted 16 points and eight assists, while Joe Johnson added 16 points and eight rebounds for the Nets, who have won two of their last three games on the heels of a seven-game losing skid.

"I think we were moving the ball well and really sharing it," Lopez said. "We've been doing well."

DeMarcus Cousins supplied 28 points and 14 rebounds and Rudy Gay chipped in 25 points, eight boards and six assists for Sacramento, which has lost five consecutive contests.

"We just didn't come ready to go," Kings head coach Ty Corbin said. "I thought we came back and fought hard."

Gay scored the final eight points of a 12-2 run to trim an early 17-point fourth quarter deficit to 88-81 midway through the frame and Cousins netted the last four points of a 9-2 spurt later in the period to whittle the gap to 96-94 with 1:31 to go.

Johnson answered at the other end with a left wing 3-pointer before Cousins and Johnson each hit a pair of foul shots for a 101-96 Brooklyn advantage with 24.1 ticks remaining.

Cousins drove in for a dunk and Johnson split a pair from the charity stripe, but Ben McLemore was off on a triple and Jack hit 1-of-2 foul shots with 8.6 seconds on the clock to seal the outcome.

Earlier, Jack capped a 14-5 burst to close the opening frame with a jumper as the Nets headed into the second with a 36-24 advantage.

An Alan Anderson trey provided the Nets with their largest lead, 60-37, late in the second and they were up 62-46 at the break.

Sacramento was within 82-69 after three.

Game Notes

Brooklyn point guard Deron Williams sat for the eighth time in nine games due to fractured rib cartilage ... Brooklyn has beaten Sacramento six times in their last seven meetings ... Anderson netted 14 points off the bench ... Darren Collison recorded 16 points and five assists for the Kings.