The South Carolina Gamecocks were playing in their home state, and they pulled off a big second-round NCAA Tournament upset, beating the Duke Blue Devils 88-81 on Sunday to advance to the Sweet 16.

No. 2 seed Duke led by seven at halftime, but seventh-seeded South Carolina took the lead about five minutes into the second half and held off the Blue Devils down the stretch to win in Greenville, South Carolina.

Sindarius Thornwell led South Carolina with 24 points, while Chris Silva and Duane Notice had 17 points apiece.

South Carolina advances to face No. 3 seed Baylor in the Sweet 16 on Friday in New York.

East Region, 2nd round | No. 2 Duke vs. No. 7 South Carolina

When: 5:40 p.m. Pacific time, Sunday, March 19

Where: Bon Secours Wellness Arena, Greenville, South Carolina

TV channel: TNT

Live stream: You can watch every game with March Madness Live and on the March Madness Live app

Line: Duke by 6.5

Over/under: 145.5

How they got here: Duke beat Troy 87-65 in the first round; South Carolina handled Marquette 93-73.

At stake: The winner advances to the regional semifinals, set for Friday in New York.

Live bracket updates by region:

Midwest | West | East | South