SAN DIEGO — Carlos Correa homered with one out in the ninth inning and the Houston Astros beat the Tampa Bay Rays 4-3 on Thursday, getting sensational pitching from five rookies to remain alive in the AL Championship Series.

Correa drove a pitch from Nick Anderson over the wall in straightaway center field, watched the ball for a few steps and then flung his bat. He was greeted at home by his ecstatic teammates. He’s only 3-for-18 in the series, but two of the hits are homers.

Houston won a second straight elimination game thanks in large part to starter Luis Garcia and four fellow rookies, who combined to hold the Rays to two runs and four hits through 6 2/3 innings before manager Dusty Baker finally turned to veteran Josh James.

Ryan Pressly, the seventh Astros pitcher, got the victory.

The Astros pulled to 3-2 in the series and forced Game 6 today. In the ALCS for a fourth straight year, the Astros are trying to join the 2004 Boston Red Sox as the only teams to come back from a 3-0 deficit in a best-of-seven series. The Red Sox beat the New York Yankees in the ALCS and went on to win their first World Series in 86 seasons.

Otherwise, big league clubs leading 3-0 in a best-of-seven postseason series are 37-1.

The Astros, who got into the playoffs with a losing record, are trying to reach the World Series for the third time in four years. They are trying to get there in a year when they have been criticized for their role in a cheating scandal — uncovered last offseason — en route to the 2017 title.

Houston’s George Springer homered on opener John Curtiss’ first pitch. Tampa Bay pulled even in the top of the third on a Brandon Lowe homer, and the Astros Michael Brantley broke the tie with a two-run single in the bottom of the inning.

Tampa Bay rookie Randy Arozarena continued his remarkable postseason by hitting his sixth homer in the fifth, and Ji-Man Choi tied the game again with a homer to deep right leading off the eighth for the Rays, who need one more win to reach the Fall Classic for the second time in franchise history.

After driving a two-run shot onto the third balcony of the Western Metal Supply Co. Building in the left field corner at Petco Park on Wednesday night to break a tie and lead the Astros to a 4-3 win in Game 5, Springer led off the bottom of the first Thursday by sending Curtiss’ first pitch onto the second balcony of the same building.

It was his fourth homer this postseason and 19th of his career, the most in franchise history and tying him with Albert Pujols for fourth all-time.

After Lowe homered to right-center off Blake Taylor leading off the third to tie the game, Brantley singled to right off Josh Fleming to bring in Josh Reddick, who singled, and Martin Maldonado, who doubled. Lowe’s throw was off line and the 230-pound Maldonado scored with a headfirst slide.

Arozarena pulled the Rays to 3-2 with an opposite-field shot to right-center off Enoli Paredes with one out in the fifth. Arozarena homered for the second straight game, third time this series and sixth time this postseason, tying the rookie record set by Tampa Bay’s Evan Longoria in 2008.

His 20 postseason hits are two shy of Derek Jeter’s rookie record in 1996.

Garcia held Tampa Bay hitless in two innings while striking out two and walking one. Taylor allowed one hit and one run in two-thirds of an inning, Paredes allowed one run and one hit while striking out three in 1 2/3 innings, Andre Scrubb gave up two hits in 1 1/3 innings, and Brooks Raley worked a scoreless inning with two strikeouts, including fanning Arozarena leading off the seventh.