SAN ANTONIO -- Tim Duncan had 23 points and 17 rebounds, Tony Parker added 18 points and 10 assists, and the San Antonio Spurs snapped a three-game slide by rallying past the skidding Sacramento Kings 95-93 on Saturday night.
Patty Mills scored 15 points and Boris Diaw added 14 for San Antonio.
After being outplayed by Gay and Thomas for much of the game, the veteran Spurs took over down the stretch to end their longest losing streak of the season.
Parker and Duncan scored San Antonio's final eight points.
After scoring 22 points primarily against Marco Belinelli, Gay was limited to one in the fourth with the 6-foot-8 Diaw guarding him. Gay missed a potential game-winning, 15-foot jumper over Diaw with 0.5 seconds remaining.
The Spurs were sluggish on offense with newly signed Shannon Brown starting and Tiago Splitter returning from injury, giving them their third different starting lineup in three games.
San Antonio shot 6 for 20 in the third quarter while falling behind by as many as 10 points. Gay and Thomas matched that production themselves, going a combined 6 for 13 in the third.
Williams' first 3-pointer gave Sacramento a 76-66 lead with 2 minutes left in the third.
The Kings turned to Gay and Thomas, with leading scorer DeMarcus Cousins missing his sixth straight game due to a sprained left ankle. The duo accounted for half of the team's 53 first-half points.
NOTES: Splitter got his loudest ovation of the season when he was announced in the starting lineup after missing 12 games with a sprained right shoulder. He came off the bench in the second half. ... Cousins suited up but did not play. He is day to day. ... Manu Ginobili (strained left hamstring), Kawhi Leonard (broken hand) and Danny Green (broken left index finger) all sat behind the Spurs bench.