Gibbs led 84 of the next 91 laps, as Justin Haley, Chase Elliott, and Todd Gilliland all failed to finish due to mechanical issues.
On lap 6, John Hunter Nemechek bumped into Harrison Burton, causing a collision involving Carson Hocevar, Kaz Grala, Austin Dillon, Ryan Preece, and Jimmie Johnson in the tri-oval.
At the white flag, Ross Chastain was turned when Corey LaJoie made contact with Austin Cindric, bringing out the caution.
On Lap 2, Austin Dillon was turned and collected Christopher Bell, Alex Bowman, Noah Gragson, Josh Williams, Harrison Burton, Daniel Hemric, John Hunter Nemechek, and others.
Joey Logano spun after contact with John Hunter Nemechek and collected Corey LaJoie and Derek Kraus.
Hamlin and teammate Martin Truex Jr. stayed out front after the final round of green-flag pit stops and saved their tires.
Hamlin was able to hold off Truex for the win, followed by Brad Keselowski, Alex Bowman, and Kyle Larson, marking the first time since the 2004 MBNA America 400 at Dover that a race ended with 5 or fewer cars on the lead lap.
On lap 1, Corey LaJoie made contact with Bubba Wallace and Martin Truex Jr. Christopher Bell won Stage 1.
However, Bell, with fresher tires, charged through the field but ultimately fell one lap short, allowing Byron to secure the victory.
Truex was heading to the win until Larson spun after contact with Bubba Wallace, bringing out the caution and sending the race into overtime.
Denny Hamlin won the race off pit road and held off Joey Logano and Truex for his second win of the season.
Joey Logano took two tires and held on to the lead, but started falling back as Denny Hamlin won the second stage.
On a restart, Harrison Burton made a three wide pass for the lead on Bubba Wallace and Chase Briscoe, which sent the latter two spinning after contact with one another.
On the restart, Chastain got into the wall after contact with William Byron on the final lap as Elliott won under caution for his first win in 42 races.
The race was incident-free until lap 132 when Christopher Bell crashed out on the backstretch, collecting Justin Haley, Chase Briscoe, and Zane Smith.
McDowell got loose while blocking and wrecked on the tri-oval, triggering "The Big One", which caused Corey LaJoie to flip upside-down.
Tyler Reddick evaded the wreck and made a three-wide pass on Keselowski and Noah Gragson to score the win.
On the restart, Bubba Wallace got into the wall after contact with Zane Smith and collected Christopher Bell and William Byron.
Noah Gragson spun and slammed into the wall after contact with Ricky Stenhouse Jr. Justin Allgaier, filling in for Kyle Larson who was running the Indianapolis 500, got up to 13th position when a caution came out.
Blaney would run out of fuel at the white flag and his teammate Austin Cindric took the lead and won the race, his second career win and breaking an 85-race winless streak, dating back to the 2022 Daytona 500.
On the final lap, Kyle Busch spun after contact with Ross Chastain and Truex ran out of fuel while Larson won the race, his third win of the season and second at Sonoma.
Hamlin passed Ross Chastain for the lead and was heading to the win until Austin Cindric spun, sending the race to overtime.
On the second restart, Justin Haley spun and collected Blaney, Burton, Josh Berry, Corey Heim, and Todd Gilliland.
At lap 121, Busch spun after contact with Corey LaJoie and collected Ryan Preece, Harrison Burton, A. J. Allmendinger, and Ricky Stenhouse Jr. Zane Smith and John Hunter Nemechek both got in the wall.
On lap 60, the caution went out for a large crash involving Martin Truex Jr., Noah Gragson, Alex Bowman, Ross Chastain, Ty Gibbs, Corey LaJoie, Hamlin, Kyle Larson, Ryan Preece, Chase Elliott, John Hunter Nemechek, and Austin Dillon.
On lap 344, Josh Berry, Wallace, Ty Gibbs, William Byron, Noah Gragson, Austin Dillon, Tyler Reddick and Daniel Suárez were involved.
But in the end, Chase Briscoe won the race after holding off a charging Kyle Busch to lock himself into the playoffs with Truex Jr. after stage two.
Joey Logano eventually managed to pull away from a speedy Daniel Suárez and Ryan Blaney to advance to the Round of 12 and get his second win of the season.
Reddick ended up winning the race, and clinched an opportunity to give him his first Championship 4 appearance, joining Joey Logano.
There was speculation of race manipulation as Chastain and Austin Dillon created a blockade behind Byron in closing laps in the race to prevent him from losing a spot that would have eliminated him from the playoffs, and Bubba Wallace intentionally slowing down on the final lap to allow Bell to gain a position to tie with Byron in points (and advance in the tiebreaker).