SAN FRANCISCO -- Yoenis Cespedes had three hits including a two-run homer and Lucas Duda had three hits including a solo blast as the New York Mets defeated the San Francisco Giants 11-4 on Friday night.
The win snapped the Mets' four-game losing streak. They had lost seven of eight.
The Giants have lost 10 of their last 11 games, 12 of their last 14 and 19 of their last 24.
After being held to five runs over their last three games, the Mets broke out their hitting slump, combining for 20 hits.
All but one Mets starter (Jose Reyes) had at least one hit and all but two (Reyes and Cabrera) drove in at least one run.
Seth Lugo (2-1) won for the third time in his last four starts. He gave up four runs in 5 2/3 innings and was 1 for 2 with one RBI.
Gorkys Hernandez hit a two-out, two-run single in the bottom of the sixth off Lugo that spoiled his bid for a fifth straight quality start.
Cespedes' ninth homer of the season highlighted a six-run second inning in which the Mets sent 10 batters to the plate.
Cespedes had a double in the sixth that highlighted a three-run inning.
In 13 games since coming off the disabled list Cespedes is 17 for 43 with seven extra-base hits including three home runs.
He's 8 for 18 with three home runs in his last four games at AT&T Park going back to last season.
Ty Blach (4-5) gave up seven runs in three innings. He's 0-3 with a 6.84 ERA in his last five starts.
Cabrera was activated from the disabled list and inserted into the New York Mets' starting lineup at second base rather than shortstop and he said he wants to be traded. Cabrera had three hits Friday night.
The 31-year-old, a two-time All-Star and a veteran of 11 big league seasons, had not started at second since Sept. 28, 2014. The Mets started Jose Reyes at shortstop against San Francisco on Friday night and Wilmer Flores at third.
Mets: Second-round draft selection Mark Vientos signed out of high school for a $1.5 million signing bonus. The infielder was the 59th overall selection in this year's draft. . The Mets also signed their third- and fifth-round picks, OF Quinn Brodey and 1B/OF Matt Winaker (both from Stanford). . Brodey signed for a $500,000 bonus and Winaker for $280,000.
Giants: LHP Madison Bumgarner (separated left shoulder) threw 45 pitches in a simulated game on Wednesday at the team's spring training complex in Scottsdale, Arizona. . Utilityman Eduardo Nunez went on the 10-day DL with a hamstring injury. The Giants activated 3B Conor Gillaspie (back spasms).
Mets RHP Jacob deGrom (6-3, 394 ERA) has allowed one earned run over 17 innings in his last two starts. He's 3-1 with a 3.62 ERA in five career starts against the Giants. San Francisco RHP Johnny Cueto (5-7, 4.42) is 1-6 with a 4.13 ERA in his last nine starts. He's 4-4 with a 3.75 ERA in 12 career starts against the Mets