SAN FRANCISCO (AP) Joe Musgrove had a season-high 11 strikeouts, Manny Machado drove in three runs and the San Diego Padres beat the San Francisco Giants 5-4 on Wednesday afternoon, completing a three-game sweep.

Luis Campusano and Jake Cronenworth added RBIs for San Diego, which has won five of its last six games and five straight against San Francisco.

''To come here and take three from them, that was a huge win for us,'' Machado said. ''We're playing good collective baseball and that's what we're going to have to do here in this last stretch.''

Musgrove (9-6) allowed three runs on three hits and two walks in 6 2/3 innings. The right-hander earned his first win since June 16, snapping a six-game losing streak.

''It's been like two months since I got a win,'' Musgrove said, laughing. ''It just feels nice to be back in the win column.''

All-Star closer Josh Hader overcame his recent struggles to secure his 30th save in 33 opportunities and his first with the Padres.

''It was a step in the right direction,'' Hader said. ''I felt like today, even though I got behind on a few guys, I was still able to execute the big pitch that I needed to make.''

Austin Wynns, Thairo Estrada, Luis Gonzalez and Joc Pederson drove in runs for the Giants, who lost their seventh straight game, matching a season high.

Alex Wood (8-12) lost his third consecutive start, giving up four runs on five hits with five strikeouts and a walk in 4 2/3 innings.

Machado broke a scoreless tie with an RBI single in the top of the fourth. San Diego added three runs in the fifth on an RBI single by Campusano and a two-run double by Machado.

Cronenworth tacked on a sacrifice fly in the sixth to make it 5-0.

Wynns got San Francisco on the board with an RBI double in the bottom of the sixth. Estrada picked up an RBI on a fielder's choice in the seventh, followed by Gonzalez's RBI single two batters later.

Pederson brought the Giants within a run with an RBI single in the eighth. San Francisco put the tying run on second base with one out in the ninth, but Hader retired Gonzalez and Wynns to end the game.

The Padres improved to a major league-best 26-13 in one-run games.

''I think this was huge to be able to win three one-run games,'' San Diego manager Bob Melvin said. ''That's how we were doing it earlier in the season in finding a way to win these games as we did here this weekend.''

CRAWFORD TOSSED

Prior to the start of the third inning, Giants shortstop Brandon Crawford was ejected by third-base umpire Ryan Blakney for arguing a check-swing call in the bottom of the second. Crawford believed he checked his swing on a 1-2 slider from Musgrove, but Blakney ruled it a swing for strike three. It was Crawford's third career ejection.

MLB IN MEXICO CITY

Major League Baseball announced that the Padres and Giants will play in the first regular-season games in Mexico City next year on April 29 and 30. San Diego will be the home team in both games at Estadio Alfredo Harp Helu Beisbol.

''The food in Mexico City is something that I've always wanted to experience,'' San Francisco manager Gabe Kapler said. ''Certainly excited about being a part of international baseball. Really looking forward to seeing Mexico City.''

The two teams were originally scheduled to play there in 2020 but the games were canceled due to the COVID-19 pandemic.

TRAINER'S ROOM

Padres: RHP Tayler Scott (right middle finger laceration) and RHP Pierce Johnson (right elbow tendinitis) continued rehab assignments with Triple-A El Paso. RHP Craig Stammen (right shoulder inflammation) continued his rehab assignment at Class A Lake Elsinore.

Giants: OF Austin Slater entered as a pinch-runner in the eighth inning and scored a run after leaving Tuesday's game with a dislocated left pinkie. ''Slater is doing better than expected,'' Kapler said. ''(He) has less swelling in there. I think he's feeling optimistic.'' ... 1B Brandon Belt (right knee inflammation) is still considering season-ending surgery after getting a second opinion on his knee Tuesday.

ROSTER MOVES

The Giants optioned INF/C Yermin Mercedes to Triple-A Sacramento and selected C Andrew Knapp to the major league roster. LHP Andrew Vasquez was designated for assignment.

UP NEXT

Padres: RHP Yu Darvish (11-7, 3.41 ERA) opens a three-game series at Los Angeles against the majors-leading Dodgers on Friday. Darvish pitched for the Dodgers in 2017, making nine regular-season and four postseason starts.

Giants: RHP Alex Cobb (4-6, 3.81) seeks his first win against the Phillies on Friday as San Francisco hosts Philadelphia for a three-game series. Cobb is 0-1 with a 3.75 ERA in two career starts against the Phillies.

--

More AP MLB: https://apnews.com/hub/mlb and https://twitter.com/AP-Sports

Copyright 2024 STATS LLC and Associated Press. Any commercial use or distribution without the express written consent of STATS LLC and Associated Press is strictly prohibited.