MIAMI (AP) — Sailing along in the sixth inning, Tim Lincecum lost his concentration and another game.
The struggling San Francisco Giants ace gave up five runs in the sixth, including a three-run homer to light-hitting Chris Coghlan, and the Miami Marlins rallied to win 7-6 Friday night.
"If I could just eliminate that one bad inning, wherever it falls, that's the big thing," said Lincecum (2-5). "It has to do with being focused and being locked in on every pitch against hitters like that."
Coghlan was batting just .104 when he pulled a hanging curve over the fence for his first homer since last June 11, breaking a 3-all tie.
That ended Lincecum's night. The right-hander gave up six runs in 5 2-3 innings, which hiked his ERA to 6.41, and he's 0-3 in his past five starts.
"He was throwing the ball great," manager Bruce Bochy said. "He went into the sixth pitching rather efficiently, then reverted to what's happened to him in previous games."
San Francisco's Melky Cabrera, who came into the game leading the majors with 67 hits, pulled his third homer of the season just inside the right field foul pole. He also tripled, but struck out against Steve Cishek with a runner at second to end the game.
"He made some quality pitches and won that battle," Cabrera said through an interpreter.
Giancarlo Stanton became the first player to hit the Marlins' home run sculpture when he connected against Lincecum.
"Both home runs were curveballs," Lincecum said. "They both kind of spun instead of breaking."
The Marlins improved to 17-7 this month, best in the majors, and broke the franchise record for victories in May.
Miami closer Heath Bell entered the game to start the ninth with a 7-4 lead but got only one out and blew a save for the fifth time in 12 chances. Cishek came on with runners at second and third and one out, and after Brandon Crawford hit a sacrifice fly to make it 7-6, Cabrera was called out on a 3-2 slider.
Cishek earned his first save in three chances. Dan Jennings (1-0) pitched a perfect sixth for his first major league win hours after being recalled from Triple-A New Orleans.
The Giants outhit Miami 14-7 but went 2 for 11 with runners in scoring position. San Francisco leads the majors in stranded runners.
The Giants' Buster Posey went 0 for 4 with an RBI groundout on the anniversary of his season-ending leg injury suffered in a home-plate collision against the Marlins last year.
Lincecum took a 3-1 lead into the sixth, then faltered.
"He was mowing for the first five innings," Coghlan said. "He started leaving some balls up. We were able to take some pitches and get some guys on."
Omar Infante led off the sixth with a double and scored on a single by Stanton. After the Marlins loaded the bases, John Buck's sacrifice fly tied the game.
Coghlan then pulled an 0-1 pitch over the fence, pounding his chest with his fist as the ball landed in the right field seats.
Despite Lincecum's troubles, he hadn't given up a homer in 50 1-3 innings until Stanton connected in the fourth inning. The ball landed in the base of the sculpture for the Marlins' first run.
Center fielder Angel Pagan ran out of room near the 418-foot sign and could only watch as the animated sculpture sprung into motion. The home run was the 10th this month for Stanton, and his 11th of the season.
"It's incredible, his ability to hit the ball," Cabrera said. "He has amazing power."
The Giants scored in the first when Pagan singled and later came home on a double play. They went up 2-0 in the second on singles by Gregor Blanco, Crawford and Pagan.
NOTES: The crowd of 27,123 included Miami Heat owner Micky Arison, whose team begins the NBA Eastern Conference finals two miles from the ballpark Monday. ... Huff had a single and improved to 6 for 12 (.500) against Johnson. ... In his past 13 home games, Stanton is batting .373 (19 for 51) with five home runs. ... The Giants committed two errors and have 49 this season, most in the majors.