Joe Puetz-USA TODAY Sports

Jose Altuve and Jose Abreu drove in three runs each and the visiting Houston Astros used a five-run eighth inning to rally past the St. Louis Cardinals 10-7 on Wednesday.

Altuve hit a three-run homer in the eighth after missing two games with a sore heel. Abreu added a two-run homer later in the inning to his first-inning sacrifice fly as he reached the 900-RBI mark for his career.

Martin Maldonado hit a two-run double for the Astros, who erased a 7-5 eighth-inning deficit to earn just their fourth victory in their last 12 games.

Astros starting pitcher Cristian Javier allowed six runs on eight hits, a walk and a hit batter in four innings. Seth Martinez (2-3) earned the victory and Ryan Pressly banked his 15th save.

Nolan Arenado hit a three-run homer for the Cardinals before exiting with lower-back tightness. Paul Goldschmidt went 3-for-5 with a homer and two RBIs.

Cardinals starter Miles Mikolas allowed five runs on seven hits and three walks in 5 2/3 innings. Giovanny Gallegos (1-4) took the loss after giving up all five of the Astros' eighth-inning runs.

The Astros took a quick 3-0 lead. After Altuve led off the game with a double, Alex Bregman walked and Kyle Tucker hit an RBI double.

Abreu followed with a sacrifice fly and Jeremy Pena hit an RBI single one out later.

But the Cardinals surged ahead 4-3 in their half of the inning on Arenado's three-run homer and Alec Burleson's RBI double.

Goldschmidt made it 5-3 with his second-inning homer. The Cardinals added a run in the fourth when Burleson was hit by a pitch and eventually scored on Goldschmidt's single.

The Astros chased Mikolas with a two-out rally in the sixth inning. Bligh Madris hit a double, Jake Meyers walked and Maldonado hit a double cut the deficit to 6-5.

Brendan Donovan made it 7-5 with a homer in the bottom of the inning.

But the Astros rallied in the eighth inning on a single by Madris, a walk to Meyers and Altuve's homer. After Tucker doubled with two outs, Abreu followed with his homer to round out the scoring.

More must-reads:

TODAY'S BEST
Rams sign first-round DE, complete draft class
Steelers QB Justin Fields focusing on 'little things' amid battle with Russell Wilson
Texans sign young offensive star to huge contract extension
Pistons confirm that key RFA forward underwent toe surgery
Pirates place left-hander, catcher on injured list
Mavs get good news on Maxi Kleber ahead of Game 4
Patriots exec discusses team's approach to QB competition
Braves to promote No. 3 prospect for MLB debut Wednesday
Diamondbacks release veteran infielder
Packers' former first-round pick planning to make 'monster leap'
NFLPA finalizing proposal for major change to offseason schedule
LeBron James shouts out Jaylen Brown after Celtics advance to NBA Finals
Pacers collapse down the stretch as Celtics sweep ECF
Hall of Famer, beloved broadcaster Bill Walton dead at 71
Jason Robertson leads Stars to comeback win over Oilers in Game 3
Despite recent form, Rafael Nadal's legacy is still gold standard for tennis
Bengals coach offers significant injury update on QB Joe Burrow
MLB officials expect automated ball-strike system to be implemented in 2026
Vikings reportedly considered Justin Jefferson trade during NFL Draft
A matured Kyrie Irving is finally proving to be the star we all knew he could be