Jul 26, 2018: Chicago Cubs first baseman Anthony Rizzo (44) reacts after hitting the game winning home run during the ninth inning against the Arizona Diamondbacks at Wrigley Field. Patrick Gorski/USA TODAY Sports

Arizona Diamondbacks at Chicago Cubs

Jul 26, 2018: Chicago Cubs first baseman Anthony Rizzo (44) reacts after hitting the game winning home run during the ninth inning against the Arizona Diamondbacks at Wrigley Field.
Patrick Gorski/USA TODAY Sports

Jul 26, 2018: Chicago Cubs first baseman Anthony Rizzo (44) hits a home run during the ninth inning against the Arizona Diamondbacks at Wrigley Field. Patrick Gorski/USA TODAY Sports

Arizona Diamondbacks at Chicago Cubs

Jul 26, 2018: Chicago Cubs first baseman Anthony Rizzo (44) hits a home run during the ninth inning against the Arizona Diamondbacks at Wrigley Field.
Patrick Gorski/USA TODAY Sports

Jul 26, 2018: Chicago Cubs first baseman Anthony Rizzo (44) celebrates with teammates after hitting the game winning home run during the ninth inning against the Arizona Diamondbacks at Wrigley Field. Patrick Gorski/USA TODAY Sports

Arizona Diamondbacks at Chicago Cubs

Jul 26, 2018: Chicago Cubs first baseman Anthony Rizzo (44) celebrates with teammates after hitting the game winning home run during the ninth inning against the Arizona Diamondbacks at Wrigley Field.
Patrick Gorski/USA TODAY Sports

Jul 26, 2018: Chicago Cubs first baseman Anthony Rizzo (44) celebrates with teammates after hitting the game winning home run during the ninth inning against the Arizona Diamondbacks at Wrigley Field. Patrick Gorski/USA TODAY Sports

Arizona Diamondbacks at Chicago Cubs

Jul 26, 2018: Chicago Cubs first baseman Anthony Rizzo (44) celebrates with teammates after hitting the game winning home run during the ninth inning against the Arizona Diamondbacks at Wrigley Field.
Patrick Gorski/USA TODAY Sports

Chicago Cubs second baseman David Bote (13) celebrates his two run home run during the ninth inning against the Arizona Diamondbacks at Wrigley Field. Patrick Gorski-USA TODAY Sports

Arizona Diamondbacks at Chicago Cubs

Chicago Cubs second baseman David Bote (13) celebrates his two run home run during the ninth inning against the Arizona Diamondbacks at Wrigley Field.
Patrick Gorski-USA TODAY Sports

Chicago Cubs second baseman David Bote (13) hits a two run home run during the ninth inning against the Arizona Diamondbacks at Wrigley Field. Patrick Gorski-USA TODAY Sports

Arizona Diamondbacks at Chicago Cubs

Chicago Cubs second baseman David Bote (13) hits a two run home run during the ninth inning against the Arizona Diamondbacks at Wrigley Field.
Patrick Gorski-USA TODAY Sports

Arizona Diamondbacks at Chicago Cubs

Arizona Diamondbacks catcher Alex Avila (5) celebrates his two run home run with teammates in the dugout during the fourth inning against the Chicago Cubs at Wrigley Field. Patrick Gorski-USA TODAY Sports

Arizona Diamondbacks at Chicago Cubs

Arizona Diamondbacks catcher Alex Avila (5) celebrates his two run home run with teammates in the dugout during the fourth inning against the Chicago Cubs at Wrigley Field.
Patrick Gorski-USA TODAY Sports

Arizona Diamondbacks at Chicago Cubs

Arizona Diamondbacks shortstop Nick Ahmed (13) throws to first base to force an out during the fifth inning against the Chicago Cubs at Wrigley Field. Patrick Gorski-USA TODAY Sports

Arizona Diamondbacks at Chicago Cubs

Arizona Diamondbacks shortstop Nick Ahmed (13) throws to first base to force an out during the fifth inning against the Chicago Cubs at Wrigley Field.
Patrick Gorski-USA TODAY Sports

Arizona Diamondbacks shortstop Nick Ahmed (13) throws to first base to force an out during the fifth inning against the Chicago Cubs at Wrigley Field. Patrick Gorski-USA TODAY Sports

Arizona Diamondbacks at Chicago Cubs

Arizona Diamondbacks shortstop Nick Ahmed (13) throws to first base to force an out during the fifth inning against the Chicago Cubs at Wrigley Field.
Patrick Gorski-USA TODAY Sports

Chicago Cubs Tyler Chatwood (21) celebrates with first baseman Anthony Rizzo (left) after scoring a run against the Arizona Diamondbacks during the eighth inning at Wrigley Field. Jim Young-USA TODAY Sports

Arizona Diamondbacks at Chicago Cubs

Chicago Cubs Tyler Chatwood (21) celebrates with first baseman Anthony Rizzo (left) after scoring a run against the Arizona Diamondbacks during the eighth inning at Wrigley Field.
Jim Young-USA TODAY Sports

Arizona Diamondbacks center fielder A.J. Pollock (11) celebrates after hitting a home run against the Chicago Cubs during the seventh inning at Wrigley Field. Jim Young-USA TODAY Sports

Arizona Diamondbacks at Chicago Cubs

Arizona Diamondbacks center fielder A.J. Pollock (11) celebrates after hitting a home run against the Chicago Cubs during the seventh inning at Wrigley Field.
Jim Young-USA TODAY Sports

Arizona Diamondbacks right fielder David Peralta (6) is retired at second base as Chicago Cubs second baseman Ben Zobrist (18) makes the throw to first during the sixth inning at Wrigley Field. Jim Young-USA TODAY Sports

Arizona Diamondbacks at Chicago Cubs

Arizona Diamondbacks right fielder David Peralta (6) is retired at second base as Chicago Cubs second baseman Ben Zobrist (18) makes the throw to first during the sixth inning at Wrigley Field.
Jim Young-USA TODAY Sports

Arizona Diamondbacks shortstop Ketel Marte (4) makes the throw to first base for a double play against Chicago Cubs left fielder Kyle Schwarber (12) is during the fifth inning at Wrigley Field. Jim Young-USA TODAY Sports

Arizona Diamondbacks at Chicago Cubs

Arizona Diamondbacks shortstop Ketel Marte (4) makes the throw to first base for a double play against Chicago Cubs left fielder Kyle Schwarber (12) is during the fifth inning at Wrigley Field.
Jim Young-USA TODAY Sports

Chicago Cubs second baseman Ben Zobrist (18) hits an RBI single during the fourth inning against the Arizona Diamondbacks at Wrigley Field. Jim Young-USA TODAY Sports

Arizona Diamondbacks at Chicago Cubs

Chicago Cubs second baseman Ben Zobrist (18) hits an RBI single during the fourth inning against the Arizona Diamondbacks at Wrigley Field.
Jim Young-USA TODAY Sports

Arizona Diamondbacks' Jon Jay is congratulated in the dugout after scoring on a single by Paul Goldschmidt during the fifth inning against the Chicago Cubs in a baseball game Tuesday, July 24, 2018, in Chicago. Charles Rex Arbogast/AP

Arizona Diamondbacks at Chicago Cubs

Arizona Diamondbacks' Jon Jay is congratulated in the dugout after scoring on a single by Paul Goldschmidt during the fifth inning against the Chicago Cubs in a baseball game Tuesday, July 24, 2018, in Chicago.
Charles Rex Arbogast/AP

Arizona Diamondbacks starting pitcher Clay Buchholz winds up during the first inning of the team's baseball game against the Chicago Cubs on Tuesday, July 24, 2018, in Chicago. Charles Rex Arbogast/AP

Arizona Diamondbacks at Chicago Cubs

Arizona Diamondbacks starting pitcher Clay Buchholz winds up during the first inning of the team's baseball game against the Chicago Cubs on Tuesday, July 24, 2018, in Chicago.
Charles Rex Arbogast/AP

Arizona Diamondbacks' Jake Lamb reacts after striking out with the bases loaded to end the top half of the third inning against the Chicago Cubs in a baseball game Tuesday, July 24, 2018, in Chicago. Charles Rex Arbogast/AP

Arizona Diamondbacks at Chicago Cubs

Arizona Diamondbacks' Jake Lamb reacts after striking out with the bases loaded to end the top half of the third inning against the Chicago Cubs in a baseball game Tuesday, July 24, 2018, in Chicago.
Charles Rex Arbogast/AP

Arizona Diamondbacks starting pitcher Clay Buchholz sits in the dugout during the third inning of the team's baseball game against the Chicago Cubs on Tuesday, July 24, 2018, in Chicago. Charles Rex Arbogast/AP

Arizona Diamondbacks at Chicago Cubs

Arizona Diamondbacks starting pitcher Clay Buchholz sits in the dugout during the third inning of the team's baseball game against the Chicago Cubs on Tuesday, July 24, 2018, in Chicago.
Charles Rex Arbogast/AP

Chicago Cubs' Kyle Schwarber catches a deep fly ball from Arizona Diamondbacks' David Peralta in the left field ivy during the sixth inning of a baseball game Tuesday, July 24, 2018, in Chicago. Charles Rex Arbogast/AP

Arizona Diamondbacks at Chicago Cubs

Chicago Cubs' Kyle Schwarber catches a deep fly ball from Arizona Diamondbacks' David Peralta in the left field ivy during the sixth inning of a baseball game Tuesday, July 24, 2018, in Chicago.
Charles Rex Arbogast/AP

Arizona Diamondbacks' Paul Goldschmidt (44) is greeted in the dugout by manager Torey Lovullo, center and bench coach Jerry Narron, after Goldschmidt 's home run off Chicago Cubs starting pitcher Luke Farrell during the second inning of a baseball game Monday, July 23, 2018, in Chicago. Charles Rex Arbogast/AP

Arizona Diamondbacks at Chicago Cubs

Arizona Diamondbacks' Paul Goldschmidt (44) is greeted in the dugout by manager Torey Lovullo, center and bench coach Jerry Narron, after Goldschmidt 's home run off Chicago Cubs starting pitcher Luke Farrell during the second inning of a baseball game Monday, July 23, 2018, in Chicago.
Charles Rex Arbogast/AP

Arizona Diamondbacks starting pitcher Patrick Corbin delivers during the first inning of a baseball game against the Chicago Cubs Monday, July 23, 2018, in Chicago. Charles Rex Arbogast/AP

Arizona Diamondbacks at Chicago Cubs

Arizona Diamondbacks starting pitcher Patrick Corbin delivers during the first inning of a baseball game against the Chicago Cubs Monday, July 23, 2018, in Chicago.
Charles Rex Arbogast/AP

Arizona Diamondbacks starting pitcher Patrick Corbin delivers during the first inning of a baseball game against the Chicago Cubs Monday, July 23, 2018, in Chicago. Charles Rex Arbogast/AP

Arizona Diamondbacks at Chicago Cubs

Arizona Diamondbacks starting pitcher Patrick Corbin delivers during the first inning of a baseball game against the Chicago Cubs Monday, July 23, 2018, in Chicago.
Charles Rex Arbogast/AP

Arizona Diamondbacks' A.J. Pollock swings into an RBI single off Chicago Cubs pitcher Luke Farrell during the first inning of a baseball game Monday, July 23, 2018, in Chicago. Jon Jay scored. Charles Rex Arbogast/AP

Arizona Diamondbacks at Chicago Cubs

Arizona Diamondbacks' A.J. Pollock swings into an RBI single off Chicago Cubs pitcher Luke Farrell during the first inning of a baseball game Monday, July 23, 2018, in Chicago. Jon Jay scored.
Charles Rex Arbogast/AP

Chicago Cubs relief pitcher Luke Farrell delivers during the first inning of a baseball game against the Arizona Diamondbacks Monday, July 23, 2018, in Chicago. Charles Rex Arbogast/AP

Arizona Diamondbacks at Chicago Cubs

Chicago Cubs relief pitcher Luke Farrell delivers during the first inning of a baseball game against the Arizona Diamondbacks Monday, July 23, 2018, in Chicago.
Charles Rex Arbogast/AP

Arizona Diamondbacks' Ketel Marte, right, tags out Chicago Cubs' Albert Almora Jr. as Almora tried to stretch his single to a double during the fourth inning of a baseball game Monday, July 23, 2018, in Chicago. Charles Rex Arbogast/AP

Arizona Diamondbacks at Chicago Cubs

Arizona Diamondbacks' Ketel Marte, right, tags out Chicago Cubs' Albert Almora Jr. as Almora tried to stretch his single to a double during the fourth inning of a baseball game Monday, July 23, 2018, in Chicago.
Charles Rex Arbogast/AP

Arizona Diamondbacks' Ketel Marte, right, tags out Chicago Cubs' Albert Almora Jr. as Almora tried to stretch his single to a double during the fourth inning of a baseball game Monday, July 23, 2018, in Chicago. Charles Rex Arbogast/AP

Arizona Diamondbacks at Chicago Cubs

Arizona Diamondbacks' Ketel Marte, right, tags out Chicago Cubs' Albert Almora Jr. as Almora tried to stretch his single to a double during the fourth inning of a baseball game Monday, July 23, 2018, in Chicago.
Charles Rex Arbogast/AP

Chicago Cubs starting pitcher Luke Farrell, left, is pulled by manager Joe Maddon during the fourth inning of a baseball game against the Arizona Diamondbacks Monday, July 23, 2018, in Chicago. Charles Rex Arbogast/AP

Arizona Diamondbacks at Chicago Cubs

Chicago Cubs starting pitcher Luke Farrell, left, is pulled by manager Joe Maddon during the fourth inning of a baseball game against the Arizona Diamondbacks Monday, July 23, 2018, in Chicago.
Charles Rex Arbogast/AP

Interested in this topic? You may also want to view these photo galleries:

CHICAGO — For the second straight day, a late-inning collapse did in the Diamondbacks.

Diamondbacks closer Brad Boxberger entered the ninth inning here Thursday with his club holding a two-run lead. But two swings changed that, as Arizona lost 7-6 in the series finale.

A game-tying, two-run homer from second baseman David Bote followed by a walk-off blast by first baseman Anthony Rizzo sealed the Diamondbacks’ fate before 38,979 at Wrigley Field.

With the loss, the Diamondbacks managed only a split with the Cubs after winning the first two games of the series. And, as in Wednesday’s 2-1 loss, Arizona was unable to maintain a lead in the late innings.

Pinch-hitter Ben Zobrist walked to lead off the Cubs’ half of the ninth inning against Boxberger. The next batter, Javy Baez, lined out to center.

“When you look at things backwards, you obviously want to get that leadoff hitter,” Diamondbacks manager Torey Lovullo said after the game. “You could see how things unraveled from there, but they’re the National League runner-up.

“You need to be able to close teams out no matter where you are. I think our team is good enough to do that when we’re supposed to.”

With one out and a runner on first, Boxberger was trying to pound the bottom of the zone on Bote, hoping to induce a ground ball. But Bote tied the game with one swing.

Two pitches later, it was over. Rizzo took advantage of a change-up Boxberger left in the zone.

Boxberger was pitching on one day of rest, something he had done 10 times this season. In such situations, the veteran reliever entered the game with a 4.66 ERA.

For comparison, Boxberger owns a 0.00 ERA on two and three days of rest. He has given up just two total hits in those situations combined (eight appearances).

Lovullo said he was aware of “some sort of trends” when it came to Boxberger’s usage and days of rest.

“I think when he is rested and ready, he is very effective,” Lovullo said. “But nothing ... leads me to think that he wasn’t ready today. We’re always constantly examining different parts of the game at different levels to make sure our athletes are prepped and ready.

“But when you get a tired pitcher out there, the stuff is going to fall back a little bit. I don’t think that was the case today with Brad.”

With a win, the Diamondbacks could have moved into a temporary tie with the Los Angeles Dodgers atop the NL West standings. Instead, they guaranteed themselves no chance at a share of first place when Thursday’s contests come to a close.

The Cubs weren’t the only ones who scored their runs with big swings. Unlike their approach in most of the series, the Diamondbacks used the long ball to take a 6-1 lead.

Trailing by a run in the fourth inning, catcher Alex Avila sent his fifth home run into the left-field bleachers to give the Diamondbacks a 2-1 advantage.

Cubs starter Tyler Chatwood ran into even more trouble in the fifth inning when he walked three of the first four men he faced. For the game, Chatwood issued seven walks (one intentional), marking the 11th time this season he has walked at least five batters. That mark leads all of baseball.

Left-hander Brian Duensing relieved Chatwood with two on and two outs in the fifth and promptly walked Daniel Descalso to load the bases. The next batter, shortstop Nick Ahmed, launched the first pitch he saw into the left-field seats for a grand slam to make it 6-1.

The grand slam was the first of Ahmed’s career and the first for the Diamondbacks this season. The club was one of three remaining MLB teams without one this season.

“It would have been a lot better if we won,” Ahmed said of the grand slam. “Obviously you want to play well every game, but we didn’t do enough as a team to win today. It hurts.”

The Diamondbacks had not hit a grand slam since former outfielder J.D. Martinez cleared the bases last season in a Sept. 27 game against the San Francisco Giants. Martinez, who has 31 home runs for the Boston Red Sox this season, also hit the last road grand slam for the Diamondbacks, which came last July 27 in St. Louis.

Ahmed, who committed a fatal error in Wednesday’s loss, also shone on the defensive side of the ball and made several key plays with his glove.

As Diamondbacks starter Zack Godley began to show signs of fatigue in the bottom of the fifth, Ahmed made a running play on a soft grounder to throw out Cubs outfielder Jason Heyward with two runners on to help the Diamondbacks out of their toughest jam of the afternoon.

Right-hander Yoshihisa Hirano relieved Godley with two outs in the seventh and recorded four outs on just 12 pitches. Right-hander Archie Bradley faced the minimum in the eighth to get the game to Boxberger.