Prior to the 2013 season, the Diamondbacks and Goldschmidt agreed to a five-year contract, covering the 2014 through 2018 seasons, worth $32 million, and a club option for the 2019 season worth $14. 5 million. He would not have been eligible for salary arbitration until the 2014–15 offseason and free agency until the 2017–18 offseason. Goldschmidt was selected to the National League's team in the 2013 Major League Baseball All-Star Game. Goldschmidt collected one of only three hits for the National League, and the only extra-base hit, when he doubled with two outs in the ninth inning. On August 13, he hit a game-tying home run against the Baltimore Orioles in the bottom of the ninth inning to send the game into extra innings. Goldschmidt then hit a walk-off home run in the bottom of the eleventh. Goldschmidt hit a third grand slam on August 20, 2013, against J. J. Hoover of the Cincinnati Reds. In 160 games that season, he attained a . 302 batting average, 36 home runs, and 125 RBIs. Goldschmidt finished second in the voting for the National League's Most Valuable Player Award, behind Pittsburgh Pirates outfielder Andrew McCutchen. He led MLB with four walk-off hits in 2013.