The San Antonio Spurs erased a 20-point second-quarter deficit to beat the Los Angeles Lakers 99-96 and advance from the NBA Cup group stage.

The Lakers built a 54-38 halftime lead behind strong play from Luka Dončić, who scored 19 of his 31 points before the break. Dončić finished 14 of 31 from the field but struggled from deep with just one three-pointer made.

San Antonio dominated the second half, outscoring Los Angeles 61-42. Victor Wembanyama scored 25 points and grabbed 16 rebounds while Stephon Castle added 26 points, including four three-pointers. Austin Reaves returned from injury to score 21 points for the Lakers.

The loss eliminated the Lakers from the NBA Cup quarterfinals. After the final buzzer, Dončić became involved in a brief exchange with a fan near the tunnel.