SAN FRANCISCO—Juan Soto hit two home runs, including a go-ahead drive in a four-run ninth inning against all-star closer Camilo Doval, and the New York Yankees rallied past the San Francisco Giants 7–5 on Sunday.
Giants starter Blake Snell, a two-time Cy Young Award winner, exited in the fifth inning with left-groin tightness and will undergo an MRI on Monday. He appears headed to the injured list for a second time this season, Manager Bob Melvin said.
Anthony Volpe hit an RBI triple and Giancarlo Stanton drove in a run with a ground-rule double against Doval in the ninth.
Aaron Judge had two singles while extending his on-base streak to 29 games as the American League East-leading Yankees won their fifth straight game and completed a 7–2 trip to three California cities with a three-game sweep at Oracle Park.
“We’ve been playing great baseball,” Soto said. “Really happy to come over here and keep doing what we’ve been doing since day one.”
Soto homered off Snell in the first inning, then reached on a bunt single and scored in the fifth.
New York trailed 5–3 in the ninth before Gleyber Torres got the rally started with a leadoff single. Yankees catcher Jose Trevino grounded into a fielder’s choice, beating out a potential double play, and Volpe sent a line drive into triples alley in right-center field to drive in Trevino. Soto followed with his 17th home run to give New York a 6–5 lead, bringing roars from the large chunk of the crowd wearing Yankees gear.
Soto flipped his bat high in the air, pounded his chest, and shouted in excitement toward the Yankees’ dugout. New York has homered in a season-high 12 consecutive games.
“I just tried to get something elevated and tried to drive it to the outfield,” Soto said. “It takes every little thing to put an inning like that [together] against a closer of his caliber.”
Judge walked, stole second, and continued to third on a throwing error by catcher Curt Casalli before scoring on Stanton’s double to deep right-center.
Mr. Melvin stood by his closer despite the loss.
“I felt good with Doval,” the manager said. “I’ll take him against anybody. It’s just, they got him today.”
Michael Tonkin (2–3) tossed two scoreless innings to earn the win. Clay Holmes worked a perfect ninth for his 17th save.
Soto, the second batter of the game, got the Yankees going when he crushed a 2–2 fastball from Snell into the stands in right-center. The three-time all-star later laid down a perfect bunt and scored on Alex Verdugo’s two-run double in the fifth.
“That’s some savage at-bats right there,” Yankees Manager Aaron Boone said. “Just wow. To get on a pitch like he hit off of Snell to start out … then bookends the day with another homer off Doval. Pretty good day to homer.”

Heliot Ramos homered and drove in three runs for the Giants. Casey Schmitt also went deep, and Jorge Soler had three hits. San Francisco has lost four straight games after having won 10 of its previous 12.
Snell, the 2023 National League Cy Young Award winner with San Diego, had seven strikeouts and allowed three-runs on five hits in his first start against the Yankees since 2020. Snell has not made it through five innings in any of his six starts with the Giants and has a 9.51 earned-run average.
Ramos hit his third homer of the season off Yankees starter Nestor Cortes in the third, then put the Giants ahead with a two-run single off reliever Dennis Santana in the sixth.
Trainer’s Room
Yankees: Right-hander Gerrit Cole (elbow) will begin a rehab assignment with Double-A Somerset (N.J.) on Tuesday. The reigning American League Cy Young Award winner has been sidelined since spring training.Up Next
Yankees: Following an off day, rookie right-hander Luis Gil (7–1, 1.99) is set to face visiting Minnesota on Tuesday night.Giants: Had not announced a starter for Monday’s series opener in Arizona.