ST. PETERSBURG, Fla. -- — Austin Meadows hit a three-run homer and later scored the go-ahead run on Manuel Margot's pinch-hit single in the seventh inning as the Tampa Bay Rays beat the Houston Astros 5-4 Sunday.
The Rays avoided a three-game sweep in the series between the last two American League champions.
Meadows homered in the fifth to make it 3-all. With the score tied at 4 in the seventh, Meadows was hit by a pitch from Brooks Raley (0-1) and later scored when Margot punched a hit through the right side.
"We needed that," Meadows said. "We've struggled lately and today was a step in the right direction. Getting that spark going was definitely needed."
Jeffrey Springs (2-0) got the win in relief. Diego Castillo pitched the ninth for his seventh save in nine tries.
Yordan Alvarez hit his third home run for the Astros in the fourth inning. He doubled and scored in the sixth, and barely missed hitting another homer in the eighth when Margot ran down his line drive in the left-field corner.
Kevin Kiermaier had three of Tampa Bay's seven hits, two of them through holes vacated by Houston's shift.
The Rays' struggling offense (.196 batting average and 102 strikeouts in a 10-game homestand) also drew the benefit of two errors, two walks, two wild pitches and three hits batsmen. Tampa Bay went 4-6 during the stretch.
"We played a good half game and then things kind of imploded," Houston manager Dusty Baker said,
Meadows homered after Astros starter Christian Javier walked Soshi Tsutsugo and hit Randy Arozarena with a pitch. Meadows' fifth homer was the Rays' first hit in four games with a runner in scoring position.
"After the Meadows home run, the momentum shifted to our side," Margot said. "We felt the energy in our dugout."
The Astros regained a 4-3 lead in the fifth on Myles Straw's two-out single.
Kiermaier doubled in the sixth and scored the tying run when catcher Martin Maldonado couldn't handle a high throw from first baseman Yuri Gurriel on Willy Adames' groundball.
"With a good throw we had him. Even with the high throw we had him, but that's a tough throw to handle," Baker said.
"Good offenses take advantage of what they get on a given day, whether it's a walk or a wild pitch or whatever," Rays manager Kevin Cash said. "We salvaged something from our homestand and we'll definitely feel better getting on that plane."
Rays starter Rich Hill pitched to 11 batters, giving up one hit and one walk in three innings.
Rays: 1B Ji-Man Choi (arthroscopic knee surgery) will play at least a week for Triple-A Durham on a rehab assignment before being activated. . . . . RHP Pete Fairbanks (right rotator cuff strain) will travel with the team on its seven-game California road trip.
Astros: Zack Greinke will start Tuesday night in the first game of a three-game series against the Yankees in New York.
Rays: Tyler Glasnow will face Shohei Ohtani on Monday night in the first game of a four-game series against the Los Angeles Angels in Anaheim.