Gerrit Cole struck out 10 batters, including his 300th of the season, in eight strong innings, Yuli Gurriel and Jose Altuve homered and the Houston Astros beat the Texas Rangers 3-2 on Wednesday night to lock up a postseason berth.

Houston won its fifth straight and 100th game of the season, becoming one of six teams in major league history to win at least 100 games in three straight seasons. The Astros lost at least 100 games in three straight seasons from 2011-13.

More Images
Houston Astros starting pitcher Gerrit Cole throws against the Texas Rangers during the first inning of a baseball game Wednesday, Sept. 18, 2019, in Houston. (AP PhotoMichael Wyke)

Gerrit Cole struck out 10 batters, including his 300th of the season, in eight strong innings, Yuli Gurriel and Jose Altuve homered and the Houston Astros beat the Texas Rangers 3-2 on Wednesday night to lock up a postseason berth.

Houston Astros' Yordan Alvarez, left, and Yuli Gurriel, right, hug at home plate after they both scored on Gurriel's two-run home run during the fifth inning of a baseball game against the Texas Rangers Wednesday, Sept. 18, 2019, in Houston. (AP PhotoMichael Wyke)

Cole (18-5) allowed two runs on six hits in earning his 14th straight win. He hasn't lost since May 22 against the White Sox, a span of 20 starts. Cole struck out 10 or more for the seventh straight start, tying the club record set earlier this season by Justin Verlander.

Houston Astros' Yuli Gurriel, center, collects high fives in the dugout after his two-run home run during the fifth inning of a baseball game against the Texas Rangers Wednesday, Sept. 18, 2019, in Houston. (AP PhotoMichael Wyke)

Roberto Osuna pitched the ninth for his 35th save.

Texas Rangers starting pitcher Kolby Allard throws against the Houston Astros during the first inning of a baseball game Wednesday, Sept. 18, 2019, in Houston. (AP PhotoMichael Wyke)

Kolby Allard (4-1) allowed two runs on four hits with four walks and two strikeouts in five innings. The Rangers have lost five straight.

Houston Astros' Yuli Gurriel flips his bat as he rounds the bases on his two-run home run during the fifth inning of a baseball game Wednesday, Sept. 18, 2019, in Houston. (AP PhotoMichael Wyke)

Astros: RHP Ryan Pressly (knee) could return as soon as this weekend, manager AJ Hinch said.

With the bases loaded and two out, Texas Rangers third baseman Nick Solak fields the hit by Houston Astros George Springer to first base for the out to end the second inning of a baseball game Wednesday, Sept. 18, 2019, in Houston. (AP PhotoMichael Wyke)

UP NEXT

Texas Rangers third base coach Tony Beasley, left, congratulates Ronald Guzman, right, as he rounds third base on his home run during the eighth inning of a baseball game against the Houston Astros on Wednesday, Sept. 18, 2019, in Houston. (AP PhotoMichael Wyke)

More AP MLB: https://apnews.com/MLB and https://twitter.com/AP_Sports

Texas Rangers' Ronald Guzman, right, reacts as he crosses the plate on his home run during the eighth inning of the team's baseball game against the Houston Astros on Wednesday, Sept. 18, 2019, in Houston. (AP PhotoMichael Wyke)

Texas Rangers' Ronald Guzman, right, reacts as he crosses the plate on his home run during the eighth inning of the team's baseball game against the Houston Astros on Wednesday, Sept. 18, 2019, in Houston. (AP PhotoMichael Wyke)

The Astros (100-53) have a one-game lead on the New York Yankees, who lost 3-2 to the Los Angeles Angels, for the best record in the majors. Houston can clinch the AL West as early as Friday with a win and loss by Oakland.

Houston Astros starting pitcher Gerrit Cole throws against the Texas Rangers during the first inning of a baseball game Wednesday, Sept. 18, 2019, in Houston. (AP PhotoMichael Wyke)

Houston Astros starting pitcher Gerrit Cole throws against the Texas Rangers during the first inning of a baseball game Wednesday, Sept. 18, 2019, in Houston. (AP PhotoMichael Wyke)

Cole (18-5) allowed two runs on six hits in earning his 14th straight win. He hasn't lost since May 22 against the White Sox, a span of 20 starts. Cole struck out 10 or more for the seventh straight start, tying the club record set earlier this season by Justin Verlander.

Cole, the major league leader in strikeouts, became the third Astros pitcher to reach 300 strikeouts in a season, joining J.R. Richard, who had 313 in 1979 and 303 in 1978, and Mike Scott, who struck out 306 in 1986.

Cole struck out Shin-Soo Choo to end the sixth for his 300th of the season. After the strikeout, Cole leapt off the mound and was given a standing ovation as he walked to the dugout. Cole waved to the crowd with his glove hand and touched his chest with his throwing hand.

Houston Astros' Yordan Alvarez, left, and Yuli Gurriel, right, hug at home plate after they both scored on Gurriel's two-run home run during the fifth inning of a baseball game against the Texas Rangers Wednesday, Sept. 18, 2019, in Houston. (AP PhotoMichael Wyke)

Houston Astros' Yordan Alvarez, left, and Yuli Gurriel, right, hug at home plate after they both scored on Gurriel's two-run home run during the fifth inning of a baseball game against the Texas Rangers Wednesday, Sept. 18, 2019, in Houston. (AP PhotoMichael Wyke)

Roberto Osuna pitched the ninth for his 35th save.

Gurriel gave the Astros a 2-0 lead in the fifth with a two-run homer to left. Altuve hit a solo home run to lead off the seventh make the lead 3-1.

Willie Calhoun scored on a throwing error by Martín Maldonado in the seventh to cut the lead to a run. Ronald Guzmán cut the lead to 3-2 with a solo home run in the eighth.

Houston Astros' Yuli Gurriel, center, collects high fives in the dugout after his two-run home run during the fifth inning of a baseball game against the Texas Rangers Wednesday, Sept. 18, 2019, in Houston. (AP PhotoMichael Wyke)

Houston Astros' Yuli Gurriel, center, collects high fives in the dugout after his two-run home run during the fifth inning of a baseball game against the Texas Rangers Wednesday, Sept. 18, 2019, in Houston. (AP PhotoMichael Wyke)

Kolby Allard (4-1) allowed two runs on four hits with four walks and two strikeouts in five innings. The Rangers have lost five straight.

TRAINER'S ROOM

Rangers: OF Joey Gallo (wrist surgery) is uncertain to return to the Rangers by the end of the week and might not return this season, manager Chris Woodward said. Gallo has been working out and playing in games at the Rangers instructional league in Arizona, but has been experiencing soreness.

Texas Rangers starting pitcher Kolby Allard throws against the Houston Astros during the first inning of a baseball game Wednesday, Sept. 18, 2019, in Houston. (AP PhotoMichael Wyke)

Texas Rangers starting pitcher Kolby Allard throws against the Houston Astros during the first inning of a baseball game Wednesday, Sept. 18, 2019, in Houston. (AP PhotoMichael Wyke)

Astros: RHP Ryan Pressly (knee) could return as soon as this weekend, manager AJ Hinch said.

TUCKER'S GREAT PLAYS

Kyle Tucker robbed Scott Heineman of a home run in the third, reaching over the right field wall and bringing it back to lead off the inning. Tucker made a great throw to get Willie Calhoun out at second in the fourth. Calhoun was initially called safe, but after Houston challenged, the call was overturned.

Houston Astros' Yuli Gurriel flips his bat as he rounds the bases on his two-run home run during the fifth inning of a baseball game Wednesday, Sept. 18, 2019, in Houston. (AP PhotoMichael Wyke)

Houston Astros' Yuli Gurriel flips his bat as he rounds the bases on his two-run home run during the fifth inning of a baseball game Wednesday, Sept. 18, 2019, in Houston. (AP PhotoMichael Wyke)

UP NEXT

Rangers: LHP Mike Minor (13-9, 3.33 ERA) starts a three-game series in Oakland against the Athletics on Friday. Minor was tagged for seven runs in his last start on Saturday against the Athletics.

Astros: After a day off on Thursday, RHP Zack Greinke (16-5, 2.95) starts the opener of a three-game series against the Angels on Friday. Greinke is 6-1 since being traded to Houston at the deadline.

With the bases loaded and two out, Texas Rangers third baseman Nick Solak fields the hit by Houston Astros George Springer to first base for the out to end the second inning of a baseball game Wednesday, Sept. 18, 2019, in Houston. (AP PhotoMichael Wyke)

With the bases loaded and two out, Texas Rangers third baseman Nick Solak fields the hit by Houston Astros George Springer to first base for the out to end the second inning of a baseball game Wednesday, Sept. 18, 2019, in Houston. (AP PhotoMichael Wyke)

More AP MLB: https://apnews.com/MLB and https://twitter.com/AP_Sports

Texas Rangers third base coach Tony Beasley, left, congratulates Ronald Guzman, right, as he rounds third base on his home run during the eighth inning of a baseball game against the Houston Astros on Wednesday, Sept. 18, 2019, in Houston. (AP PhotoMichael Wyke)

Texas Rangers third base coach Tony Beasley, left, congratulates Ronald Guzman, right, as he rounds third base on his home run during the eighth inning of a baseball game against the Houston Astros on Wednesday, Sept. 18, 2019, in Houston. (AP PhotoMichael Wyke)

Texas Rangers' Ronald Guzman, right, reacts as he crosses the plate on his home run during the eighth inning of the team's baseball game against the Houston Astros on Wednesday, Sept. 18, 2019, in Houston. (AP PhotoMichael Wyke)

Texas Rangers' Ronald Guzman, right, reacts as he crosses the plate on his home run during the eighth inning of the team's baseball game against the Houston Astros on Wednesday, Sept. 18, 2019, in Houston. (AP PhotoMichael Wyke)