Zach LaVine, DeMar DeRozan and Domantas Sabonis combined for 99 points to power the Sacramento Kings to a 127-117 comeback win over the Detroit Pistons on Monday night.

LaVine scored 43 points — including 17 in the fourth quarter — while DeRozan added 37, helping Sacramento rally from a 66-48 deficit in the second quarter.

The win moved the Kings to 39-40 on the season, giving them a one-game lead over Dallas for ninth place in the Western Conference standings.

Sacramento entered the night on a two-game win streak and extended it to three by outscoring Detroit 65-45 in the second half.

LaVine sparked the decisive run with a trio of 3-pointers in the first 1:46 of the fourth quarter, turning a one-point edge into a 112-104 lead.

He shot 16-for-28 from the field and 8-for-11 from deep, including 5-of-6 accuracy from three in the final period.

Sabonis added his 25th triple-double of the season with 19 points, 15 rebounds, and 10 assists.

DeRozan contributed 14 made field goals on 26 attempts, and scored eight of Sacramento’s final 14 points in the second quarter to close a 20-point gap before halftime.

The Pistons, now 43-36 and sixth in the East, have dropped four of their last five games.

Cade Cunningham scored 35 points for Detroit and brought the Pistons within 106-105 early in the fourth with a three-point play.

However, Sacramento responded with a 12-3 burst, capped by a Devin Carter three-pointer with 6:39 remaining, pushing the lead to double digits.

Detroit shot 47.2% from the field but allowed Sacramento to hit 51.6% overall and 40.7% from beyond the arc.

Tim Hardaway Jr. chipped in 19 points for the Pistons, who needed four threes to break their franchise single-season record entering the game but fell short with 13-of-39 shooting from long range.

Ausar Thompson had 15 points, Jalen Duren posted six points and nine rebounds, and Malik Beasley added 14 off the bench.

The Kings were without Keegan Murray (back) and Jake LaRavia (thumb), and also lost Malik Monk in the first quarter to a left calf injury.

Despite the short-handed rotation, Sacramento’s bench delivered 26 points, led by Jonas Valančiūnas’ 10 and Carter’s seven.

The Kings trailed by as many as 20 in the second quarter after the Pistons opened the period on a 29-10 run.

Sacramento closed the half on a 14-6 push to cut the deficit to 72-62 heading into the break.

LaVine’s buzzer-beating three gave the Kings their first second-half lead at 97-94 at the end of the third quarter.

From there, Sacramento controlled the tempo and held off every Pistons run, never allowing the visitors to reclaim the lead.