MIAMI -- Rookie Donovan Solano hit a walk-off RBI single in the 11th inning to give the Miami Marlins a 4-3 win over the New York Mets on Tuesday.
Gorkys Hernandez and Rob Brantly homered for the Marlins, and Chad Gaudin (4-2) pitched an inning in relief to pick up the victory.
Jose Reyes tripled to deep center off Collin McHugh (0-4) to lead off the bottom of the 11th. McHugh then issued intentional walks to Giancarlo Stanton and Carlos Lee to load the bases. Brantly struck out before Solano singled up the middle to drive in the winning run.
Solano had struck out in his previous four at-bats before producing the game-winner.
The Mets had loaded the bases in the 10th, but Ryan Webb escaped the jam by striking out Josh Thole to end the inning.
Adam Greenberg, who signed a one-day contract with the Marlins, struck out in the sixth inning in his first plate appearance in seven years after being hit in the head with a pitch in 2005.
Mets knuckleballer R.A. Dickey struck out Greenberg on three pitches after Greenberg was given a standing ovation by the crowd.
Dickey had won all eight of his previous starts against the Marlins, including five this season. He allowed three runs and seven hits while striking out eight. The Cy Young Award candidate finished his season with a 20-6 record and 2.73 ERA.
Marlins starter Jacob Turner pitched 7 2/3 innings, allowing one run and three hits. He struck out four.
After Greenberg and Hernandez struck out in the sixth, Reyes and Stanton each singled, followed by a single by Lee, who drove in Reyes for a 3-0 lead.
Turner exited with two outs in the eighth with a runner on first base. Mike Dunn relieved Turner and allowed a single to Daniel Murphy.
Heath Bell came on for Dunn and allowed an RBI single by David Wright to cut the deficit to 3-1. Then Bell walked Ike Davis to load the bases and threw a wild pitch allowing Murphy to score. Scott Hairston hit an RBI single off Bell to tie the game at 3-3. Bell, who failed to record an out, departed to a shower of boos from the home crowd.
Dickey allowed just one hit into the fourth inning before Hernandez deposited a 2-1 offering over the left-field fence for the early 1-0 Miami lead. It was Hernandez's third home run of the season.
Reyes followed Hernandez's homer with a single to left. It was just his third hit off Dickey in 25 career at-bats. Reyes stole second base, but Stanton and Lee were retired, leaving Reyes stranded.
Brantly led off the fifth with his third home run of the season to give the Marlins a 2-0 advantage. It was only the fourth time this season Dickey has given up two or more home runs in a game.
Hairston's two singles were the only hits for the Mets in the first five innings off Turner.
NOTES: Fred Van Dusen, the only player to be hit by a pitch in his only major league plate appearance now that Greenberg has recorded an official at-bat, threw out the ceremonial first pitch. Van Dusen, 75, played for the Philadelphia Phillies against the Milwaukee Braves on Sept. 11, 1955.... Stanton established a new club record Monday with his 18th home run after the All-Star break in just his 41st game. Stanton is tied with Frank Robinson for fifth all-time with 93 home runs before their 23rd birthday. ... Dickey is the first 20-game winner on a below-.500 team since 1997, when Roger Clemens went 21-7 for the Toronto Blue Jays. ... The Mets will send Jeremy Hefner (3-7, 5.32 ERA) to the mound in the season finale Wednesday. The Marlins are undecided on their starter.