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.
It capped off a game in which almost 500 pitches were thrown and took more than five hours to complete.
[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 Joe Maddon, who proceeded to get in Gibson's face at the base of the mound after calming down Arrieta.
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, Jorge Soler sent a charge into Tony Watson's offering to tie the game with a blast to center.