SACRAMENTO, Calif. — Upset over being boxed out for a rebound by Joel Embiid with his team down by one in the final minutes of the fourth quarter, Sacramento center Willie Cauley-Stein immediately made up for it by blocking the Philadelphia big man’s putback attempt.

De’Aaron Fox took over from there and, after a failed try driving the lane, made a shot that was just as big as Cauley-Stein’s block.

Fox hit a 19-foot jumper with 13.4 seconds remaining to lift the Kings over Philadelphia 109-108 on Thursday night, ending a five-game winning streak for the 76ers that marked their longest in six years.

“We stuck together, because I thought it was going to get away from us, but we got some hustle plays and we hung onto some loose balls,” Sacramento coach Dave Joerger said. “We hope that we can get this every night, but we are going to enjoy this one.”

Cauley-Stein’s block on Embiid set it up. The Kings’ 7-footer also defended Embiid when he missed a shot from the free throw line as time expired.

“My last thing was I had to block it,” Cauley-Stein said. “A score would have ended it. It was just instinctual.”

Two nights after rallying from 17 points down to upset Oklahoma City and snap a seven-game skid, Sacramento (3-8) pulled off another stunner by closing with a 7-0 run.

The Kings led for most of the second half but fell behind late in the fourth quarter when they went nearly four minutes without a field goal. Fox ended the drought with a short jumper and Garrett Temple hit a 3-pointer before Fox’s game-winner gave Sacramento its second consecutive win.

“That’s a shot that I’m extremely comfortable with,” Fox said. “That’s what (they) gave me, so I took it.”

Zach Randolph had 20 points and seven rebounds for the Kings. Justin Jackson scored 19, including 11 in the fourth quarter, and Fox finished with 11 points and seven assists.

Embiid had 22 points and 15 rebounds on an uneven night. He shot 7 of 20 and struggled in the paint against Randolph and Kosta Koufos.

“We didn’t deserve to win the game,” 76ers coach Brett Brown said. “We poked ourselves in the eye. There are some things that you can spin and blame on youth. This isn’t one of them.”

Robert Covington scored 24 points and sank six 3-pointers for Philadelphia (6-5). Ben Simmons added 18 points and six assists.

The 76ers trailed by as many as nine and looked out of rhythm most of the night before Simmons scored six straight points in the fourth quarter, including an emphatic, one-handed, driving dunk down the lane.

Dario Saric followed with a 3 and Covington’s sixth shot from beyond the arc followed by a three-point play extended Philadelphia’s lead to 108-102 before the Kings made their decisive push.

The game was close early on before Sacramento pulled away midway through the second quarter to lead 64-57 at halftime.

LONG TIME COMING

It was the first time Cauley-Stein and Embiid matched up as starters. The two 7-footers squared off last season when Cauley-Stein was a backup to DeMarcus Cousins. “He’s a great player and I’ve been wanting to see this matchup for a while,” Cauley-Stein said. “I’m happy I could just play with him. We both had a really good game and made it interesting.”

TIP-INS

76ers: Simmons failed to have a double-double for only the fourth time in 11 games. … Philadelphia has made 10 or more 3-pointers in seven consecutive games. … Jerryd Bayless remained sidelined with a bruised left wrist.

Kings: Vince Carter was inactive because of a kidney stone.

UP NEXT

76ers: Make a short trip south to play at Golden State on Saturday.

Kings: Begin a three-game road trip Saturday against the Knicks. Sacramento lost both meetings with New York last season.


More NBA basketball: https://apnews.com/tag/NBAbasketball