MIAMI -- When they met in San Francisco at the start of the month, the Marlins completed a three-game sweep while allowing five total runs.
The Giants sent a message on Thursday night in the first of four at Marlins Park.
Angel Pagan and Melky Cabrera each drove in four runs to provide Ryan Vogelsong with plenty of support in the Giants' 14-7 shootout win over the Marlins in front of 24,099 at Marlins Park.
For the first time since April 29-30, Miami has lost two straight games.
"That's the worst game we've played all year," Marlins manager Ozzie Guillen said after his team fell to 16-7 in May. "I think we've been playing pretty good baseball all around. Today was very ugly and something you have to turn the page as quickly as you can and be ready for tomorrow's game."
The combined 21 runs and sporadic play was in stark contrast to the May 1-3 series at AT&T Park, when Miami took all three games in a series 13 combined runs were scored.
"That's the way it is," Guillen said. "You come in here with the pitching staffs we have. Who thought the game was going to finish like that? We're pitching well, they're pitching well. It's the kind of game you're scratching your head, both teams not pitching that good. But tomorrow you'll see 1-0, 2-1. Hopefully, we're the one on top."
The loss spoiled Anibal Sanchez's chance to continue his domination over the Giants. The right-hander entered with a 3-0 career record and a 0.87 ERA in four starts.
"Believe me, I was as surprised as anybody," Giants manager Bruce Bochy said. "I thought it was going to be a low-scoring game, which it was [for five innings]."
Sanchez gave up five runs on seven hits in 5 1/3 innings, ending his string of 16 straight starts of allowing no more than three earned runs.
"That's baseball," Sanchez said. "I think every pitcher has situations like that. I'm not perfect. I'm human. I'm always going to the mound looking for a win, not just for me, but for the team. I like this team. I'm just working hard for it."
In his first eight starts, Sanchez allowed as many as three runs once. And he had gone six straight outings working seven innings.
Giancarlo Stanton belted a mammoth home run off Vogelsong, and he added a two-run double in the eighth. Omar Infante matched his career high with four hits, raising his average to .340. It's the 10th time in his career with four hits, and second this season. He last did it on May 15 against the Pirates.
There was a little levity when the game got out of hand in the seventh. On Buster Posey's RBI single to center, Stanton's throw to the plate caused first baseman Logan Morrison to flop backward to the dirt.
Morrison and Stanton both were able to laugh about it, with Stanton covering his mouth with his glove to not appear obvious on a rough night.
Prior to allowing 14 runs, Miami's season high allowed was eight by the Padres on May 4.
The game was tied at 1 after five innings, and Miami squandered numerous chances through five.
Miami was 0-for-4 with runners in scoring position, and the club left seven on entering the sixth. In the fifth, Vogelsong worked out of a bases-loaded jam when Stanton fouled out to first.
In the sixth inning, momentum changed, and the Giants pushed across four runs. Some sloppy play led to the big inning. There were two wild pitches and a missed chance on a rundown.
Gregor Blanco tripled to open fifth. With one out, the Marlins missed an opportunity to minimize the damage on Cabrera's comeback grounder that deflected off Sanchez's left hand.
Sanchez made a nice recovery to field the ball and throw home to catcher Brett Hayes. Blanco scrambled back to third, and he was able to slide in safely ahead of Hayes' throw. Instead of getting the out, Blanco was at third and Cabrera was at first on a fielder's choice.
"One little play turned the game," Guillen said. "The rundown at third base could have made the game change."
A wild pitch moved Cabrera to second, and Posey walked to fill the bases.
Pagan doubled to right, driving in two. A wild pitch scored Posey for the third run. Brandon Belt's flare to short left ended Sanchez's night after 5 1/3 innings and 92 pitches.
The Marlins took an early lead on Stanton's latest assault on Marlins Park. The imposing right fielder blasted a home run that sailed over the 427-foot sign well beyond the wall in left-center. The ball landed in the Budweiser Bar area on the concourse.
The shot was estimated at 434 feet. On Monday, Stanton connected on a 438-foot grand slam off Colorado's Jamie Moyer. That drive knocked out several light panels on the video scoreboard.
"If you have a good game from the beginning, you have to finish," Sanchez said. "You have to keep working hard. I know there were a lot of bloopers and a lot of bad luck today. I think I had the chance to finish."