CLEVELAND (AP) -- Kyrie Irving's two free throws with 0.4 seconds remaining gave the Cleveland Cavaliers a 93-92 win over Sacramento on Sunday night, extending the Kings' losing streak to five games.
Irving's foul shots came after DeMarcus Cousins' basket with 2.9 seconds left gave the Kings a 92-91 lead.
Cleveland called timeout to get the ball at midcourt. Irving inbounded to Antawn Jamison, who gave the ball back to the rookie point guard. Irving drove into the lane, where he was fouled by Tyreke Evans. The No. 1 overall draft pick then calmly sank both shots to give Cleveland a one-point lead.
The Kings had one last chance. After a timeout moved the ball to halfcourt, Evans' alley-oop pass hit the rim and the game appeared to be over. However, the officials ruled the clock started too early and Sacramento had another opportunity. Evans inbounded to Cousins, whose fallaway shot from the right side caromed off the rim.
The game was tied 17 times and there were 19 lead changes.
Irving scored 23 points and Jamison added 21. Isaiah Thomas, making his second start, scored a career-high 23 points and had 11 assists for the Kings.
Neither team led by more than six until late in the third quarter when Irving started a fast break and threw an alley-oop pass to forward Tristan Thompson for a dunk. The play gave Cleveland a 75-68 lead after three quarters.
Cleveland built an 80-70 lead early in the fourth period, but the Kings rallied. John Salmons' basket tied the game at 82 before Marcus Thornton put the Kings ahead 84-82 with a drive in the lane midway through the fourth quarter.
Jamison's 3-pointer gave Cleveland the lead, but Thornton's rebound basket gave the Kings an 86-85 advantage. Irving's layup off a steal put Cleveland up by one. Thomas' scoop shot in the lane gave the Kings an 88-87 lead.
Jamison's free throw tied the game, but Thornton's layup off Irving's turnover with 1:28 remaining gave Sacramento a 90-88 lead. Thompson's tip-in off Irving's missed layup tied the game with 35 seconds left.
The Kings missed three shots on their ensuing possession and Alonzo Gee was fouled trying to grab the rebound. He missed the first shot, but made the second.
After a timeout, Cousins took the inbounds pass from Thomas, drove the baseline around Jamison and scored on an underhand layup.
Thornton scored 21 points and Cousins had 19 for the Kings.
The Kings are 0-4 on their six-game road trip. The Cavaliers are 3-3 on their nine-game homestand, the longest in franchise history.
The teams were involved in an offseason trade that sent small forward Omri Casspi to Cleveland while power forward J.J. Hickson joined the Kings. Casspi scored six points and had a career-high 12 rebounds while Hickson was scoreless and had four rebounds off the bench. The Cavaliers also received a lottery-protected first-round draft pick.
NOTES: The Kings, who are 3-16 on the road, play in Miami on Tuesday and in Washington on Wednesday. ... Kings coach Keith Smart went 9-31 as interim coach of the Cavaliers in 2002-2003, replacing John Lucas at midseason. ... Cavaliers G Daniel Gibson missed his second straight game with a sprained ankle. Coach Byron Scott said Gibson might return Tuesday against Detroit. ... Cleveland G Anthony Parker sat out his 10th consecutive game because of back spasms.