Nick Ahmed hit the Diamondbacks' third home run, an eighth-inning solo shot that was the first of his major-league career.

Marte, called up from Triple-A Reno earlier on in the day to help fill the roster spots vacated by the trades of Gerardo Parra and Martin Prado, took Jeff Locke (2-3) deep into the left-field seats to break a 3-3 tie. Hill followed one out later with his ninth home run of the season.

Reliever Oliver Perez (2-1) earned the win by getting the last two outs in the sixth.