The Arizona Diamondbacks defeated the Miami Marlins 3-2 on Sunday to secure home-field advantage in the National League Wild Card game.

J.D. Martinez notched the game-winning hit for the Diamondbacks, who acquired him on July 31 from the Detroit Tigers.

"This isn't it," he said. "They only get bigger from here. In my opinion, we are not in the playoffs yet. If we win that wild card, then we are in it."

The Diamondbacks, who won only 69 games a year ago but are 90-66 this season, were assured a playoff berth earlier in the day, when the St. Louis Cardinals lost at the Pittsburgh Pirates and the Milwaukee Brewers was beaten at home by the Chicago Cubs.