KANSAS CITY, Mo. >> Gerrit Cole pitched like a postseason ace Thursday night, holding the Kansas City Royals to a single run over seven innings and sending the New York Yankees to a 3-1 victory that put them back in the American League Championship Series.

The six-time All-Star scattered six hits and struck out four before handing the ball to the New York bullpen, which dominated a tense AL Division Series. Clay Holmes tossed a perfect eighth inning and Luke Weaver breezed through the ninth, extending the scoreless streak by Yankees relievers to 15 2/3 innings this postseason.

New York will play Cleveland or Detroit on Monday night at Yankee Stadium.

“Proud of these guys,” Yankees manager Aaron Boone said. “We get to go play for it now and we’re excited about that.”

Juan Soto, Gleyber Torres and Giancarlo Stanton drove in runs for the Yankees, who fittingly clinched a spot in their fourth ALCS in eight years on the road. They won 50 games away from home in the regular season, their most in 21 years.

Michael Wacha failed to get through five innings for Kansas City, allowing two runs, six hits and a walk. He didn’t get much help from a long-scuffling offense that managed just five runs total over the final three games of the series.

Still, it was a remarkable turnaround for a club that went from 106-loss laughingstock a year ago to making its first postseason appearance since winning the 2015 World Series. And with young stars such as Bobby Witt Jr. signed to long-term deals, there is hope in Kansas City that this was a beginning rather than an ending.

“Feel really badly for those guys in the room,” Royals manager Matt Quatraro said, “because as you know, this is seven, eight months of the year that they just pour it all into it, and give every ounce of effort and energy they have.”