Nick Ahmed had an RBI single in the 9th inning to score Jake Lamb and give the Diamondbacks a 7-6 win over the Rockies on Thursday.
Socrates Brito and Lamb each homered for the Diamondbacks (35-40), who rallied from a 3-0 deficit to take a 6-3 lead, only to see the Rockies tie it at 6-6 with three runs in the 8th.
Zack Greinke started the game and 5 2/3 innings, allowing seven hits and three earned runs.
The Diamondbacks are now 22-15 on the road this season. They have won six of their last seven games.