CLEVELAND: The hyped pitching matchup between Trevor Bauer and Gerrit Cole lived up to its billing, but it still ended up being a footnote.

In a wild extra-inning game that included massive rallies by both teams, Greg Allen’s walk-off home run in the 14th inning lifted the Indians to a 10-9 win over the Houston Astros Sunday at Progressive Field.

“There have been a lot of nights where I’ve sat in here and I’ve said, ‘You know what? If we can get the tying run to the plate, we’ll win one of those.’ We did,” Indians manager Terry Francona said. “I know our bullpen wasn’t perfect, but we found a way to win and those are the types of wins that I think really propel your team down the road.”

Former UCLA teammates Bauer and Cole dueled to a 3-2 game into the eighth inning. Bauer tossed 127 pitches and struck out 13 but walked his final batter to warrant a call to the bullpen. From that point, it was bedlam on both sides, with the Astros compiling a six-run eighth and the Indians answering with a five-run ninth to tie it.

Cole allowed four hits and three earned runs, striking out eight and walking two, in seven innings.

Bauer left with the lead and one out in the eighth. One pitch after his departure from the game, the Indians’ lead was gone. Two pitches later, they were trailing, and the downslide was on for another disaster inning for the bullpen.

The Indians turned to Evan Marshall rather than let Bauer face Jose Altuve for the fourth time. Marshall’s first pitch was hit into left field for a score-tying single. His third pitch was lined back up the middle by Carlos Correa to give the Astros a 4-3 lead. Yuli Gurriel followed with another run-scoring single, putting the Astros up 5-3 and warranting a round of boos from the Progressive Field crowd.

But the worst for the Indians bullpen was yet to come. With Ben Taylor now on the mound to try to keep it a two-run game, Astros designated hitter Evan Gattis crushed a three-run home run to left field, extending the lead to 8-3 and sending some of the home crowd for the exits.

This time, though, the bullpen was redeemed when the Indians rallied for five runs in the ninth against one of the game’s best bullpens to tie the score 8-8 and force the game into extra innings.

Jose Ramirez ignited the rally by parlaying a 17-pitch at-bat into a double off the right-field wall. That was followed by singles by Edwin Encarnacion and Yonder Alonso, making it 8-4. Jason Kipnis added an RBI single to right field and Erik Gonzalez singled home a run to left to cut the deficit to 8-6.

With two outs, Francisco Lindor blooped a single to left to make it a one-run game. Michael Brantley completed the wild comeback by lining a ball to left field that ricocheted off third baseman Alex Bregman’s glove, scoring Gonzalez to tie it 8-8.

Ramirez, who started the rally, nearly ended it. He lined a ball down the right-field line that was caught with a terrific diving effort by Yuli Gurriel to send it to the 10th inning.

The Indians bullpen collected itself and held the tie for four innings, but the Astros eventually fired back in the 13th inning. With Dan Otero on the mound, Gattis belted his second moonshot-of-a-home-run, this time a solo shot to left field and a 9-8 Astros lead.

Once again, the Indians refused to go down. Again needing to respond, Alonso launched a solo home run off Collin McHugh to bring it to a 9-9 deadlock.

Finally, the decisive blow was leveled in the 14th, as Allen picked the right time for his first home run of the season — a solo shot off Brad Peacock to right field — to end a marathon game that fell seven minutes shy of five hours.

Ryan Lewis can be reached at rlewis@thebeaconjournal.com. Read the Indians blog at www.ohio.com/indians. Follow him on Twitter at www.twitter.com/RyanLewisABJ.