Pinch hitter Ryan Waldschmidt hit a two-run walk-off homer with two outs in the ninth inning as the Arizona Diamondbacks overcame a four-run deficit to beat the Chicago Cubs 5-4 in Phoenix on Tuesday.
Tim Tawa drew a walk from Jacob Webb (6-4) with one out in the ninth. Pinch runner Jose Fernandez stole second with two outs before Waldschmidt hit a 2-1 hanging slider 408 feet into the left field seats.
The D-backs have 40 comeback victories this season, tied for the Cubs for the most in the majors.
Waldschmidt, a rookie, also hit a two-run walk-off homer in the ninth to beat the Los Angeles Dodgers 4-3 on Aug. 7.
The Cubs had scored 30 consecutive runs and had thrown 23 consecutive scoreless innings since falling behind the Seattle Mariners 2-0 in the second inning of a 19-2 win on Sunday until the D-backs scored three in the eighth on Tuesday.
Daniel Palencia retired the first batter before hitting Jordan Lawlar in the head with a 98 mph fastball. Lawlar left under his own power and was replaced by Jorge Barrosa before Lars Nootbaar walked.
Gabriel Moreno hit a check-swing double that struck the first base bag, driving in Barrosa. Geraldo Perdomo singled to center, knocking in two and making it 4-3.
Webb entered and got Max Kepler to ground out to end the frame before the D-backs rallied again in the ninth.
Arizona reliever Justin Martinez (1-0) struck out two in the ninth while making his third major league appearance of the season.
Chicago’s Ian Happ hit a three-run homer off Brandon Pfaadt to break a scoreless tie in the fourth inning, his third long ball in five games.
Cubs starter Clay Holmes gave up two hits, both singles, in seven scoreless innings. He struck out five and walked two. He left with a 4-0 lead.
Seiya Suzuki had two hits and scored twice and Michael Busch had two hits and an RBI for the Cubs, who remained three games ahead of the Philadelphia Phillies for the top National League wild card. The D-backs are one game behind the San Diego Padres for the third and final wild-card spot.
