Nestor Cortes left the New York Yankees' do-or-die Game 4 with an injury in the third inning on Sunday.

Cortes was looked at by a trainer during his at bat against Jose Altuve, but he stayed in the game. However, when the next batter, Jeremy Peña, hit a three-run home run to tie the game, a trainer looked at home again and took him out.

The Yanks announced it was a left groin injury for the lefty.

Nestor Cortes looks on

Nestor Cortes #65 of the New York Yankees reacts in the third inning against the Houston Astros in game four of the American League Championship Series at Yankee Stadium on October 23, 2022, in the Bronx borough of New York City. (Elsa/Getty Images)

Cortes' average fastball velocity was down almost three mph in the third inning as compared to the first and second.

CLICK HERE FOR MORE SPORTS COVERAGE ON FOXNEWS.COM

Cortes had been the Yankees' most consistent arm of the season. During the regular season, his 2.44 ERA was the best on the team and the 10th lowest in all of baseball (minimum 120 innings).

Entering Game 4, Cortes had allowed three earned runs in his two starts spanning 11.0 innings (2.70 ERA).Cortes was named an All Star for the first time this season after quite the roller coaster start to his career.

Nestor Cortes delivering

Nestor Cortes #65 of the New York Yankees delivers during the first inning against the Houston Astros in game four of the American League Championship Series at Yankee Stadium on October 23, 2022, in the Bronx borough of New York City. (Elsa/Getty Images)

PHILADELPHIA PHILLIES FANS GO CRAZY CELEBRATING TEAM GOING TO WORLD SERIES

A 36th round pick in 2013, he was designated for assignment by the Orioles in 2018, traded by the Yankees in 2019, and re-signed with them before the 2021 season.He then became a fan favorite as he pitched to a 2.90 ERA in 2021. Many weren’t sure if it was legit, but he proved it was with his All Star campaign this year.

The Yanks will now have to manage seven innings from the bullpen – and fight back from a 4-3 deficit – in order to live to see another day.

Nestor Cortes walks off mound

Nestor Cortes #65 of the New York Yankees walks back to the dugout during Game 4 of the ALCS between the Houston Astros and the New York Yankees at Yankee Stadium on Sunday, October 23, 2022, in New York, New York. (Mary DeCicco/MLB Photos via Getty Images)

CLICK HERE TO GET THE FOX NEWS APP

The Yankees did put up three runs early, but they have struggled immensely on offense this entire postseason, especially in this ALCS.