It would have been so easy for the Cubs to just chalk this one up as a loss and head home.
But this 2016 Cubs team isn't built that way.
They showed what they're made of again Monday, walking off the Pirates, 8-7, in front of 38,951 fans at Wrigley Field.
The Cubs had plenty of chances to score all game, including in extra innings as Javy Baez was thrown out at home plate to end both the 10th and 12th innings.
In the top of the 13th, the Pirates finally broke through, loading the bases with nobody out against Rob Zastryzny and scoring a run — but only one run.
In the bottom of the 13th, the Cubs got their offense going again as Dexter Fowler and Kris Bryant led the inning off with singles to put runners at the corners. Anthony Rizzo then singled through the infield to tie the game and drive home Fowler.
Ben Zobrist was intentionally walked to load the bases with nobody out, setting the stage for Miguel Montero's walk-off single to start the Cubs' homestand off on a positive note and send Zastryzny home with his first MLB victory.
It capped off a game in which almost 465 pitches were thrown and took more than five hours to complete.
"We got in late last night," Cubs manager Joe Maddon said. "I got back about 3 a.m. So these guys — they're coming off West Coast to the Central Time Zone, they're tired, we had to show up today early for a picture — that happens sometimes — and they came out and played until Midnight.
"Of course you want to win that game. That's a tough game to lose. But understand the effort that you saw tonight based on a lot of fatigue. And that's probably what I'm most proud of."
[SHOP CUBS: Get your Cubs gear right here]
The Cubs opened up a 3-0 lead on Pirates rookie starter Steven Brault early, but they could have easily had more, narrowly missing home runs in the first (Zobrist) and third innings (Jorge Soler).
The Pirates, meanwhile, came roaring back against Jake Arrieta.
First, Josh Bell hit a solo homer just over the basket in left field in the fourth inning. Then Gregory Polanco deposited a three-run shot down the left-field line in the sixth inning, two batters after it appeared the Cubs had gotten a strike-'em-out, throw-'em-out double play. Home plate umpire Tripp Gibson disagreed, calling the pitch Ball 4 to Bell and putting two runners on with nobody out instead of two outs and nobody on. Arrieta was irate, staring down the umpire and prompting a visit from Maddon, who proceeded to get in Gibson's face at the base of the mound after calming down Arrieta.
"That's an entirely different baseball game right there that occurred on that particular pitch," Maddon said. "Everything turned on that particluar pitch.
"But I'm not gonna denigrate the umpire. We had plenty of opportunities — PLENTY — to win that game in a normal fashion or earlier. We had so many great at-bats to set it up and then we could not seal the deal."
Arrieta was also saddled with a pair of runs in the seventh inning, with Travis Wood letting two inherited runners score on Josh Harrison's two-out double to make it a 6-3 Pirates lead.
The reigning NL Cy Young winner finished with a tough-luck line that flashed six earned runs in 6 1/3 innings on five hits and three walks.
Then the Cubs began their comeback.
In the eighth, Jason Heyward doubled and Willson Contreras homered to straightaway center.
With one out in the ninth, Soler sent a charge into Tony Watson's offering to tie the game with a blast to center.
That set up Montero for the storybook ending.
"The resiliency of our team is incredible," Arrieta said. "That's what you need down the stretch. ... Just a crazy ballgame all the way around."