BOSTON — The bullpen door opened and Noe Ramirez jogged into a major league game for first time in his career.
The momentum from Boston's successful road trip was gone.
"I wasn't really feeling too many nerves out there," Ramirez said. "I left too many balls up in the zone."
Manager John Farrell had no choice but to call on the rookie since Junichi Tazawa was unavailable.
"He had the series off in Toronto given the workload," Farrell said. "He threw a bullpen earlier today. After the bullpen he was deemed OK, but advised not to use later — to not get him warmed up twice in one day."
Ramirez gave up four runs — two earned — and three hits.
Hanley Ramirez hit his 17th homer for the Red Sox, who returned home following a 5-2 trip.
First baseman Mike Napoli allowed Preston Tucker's hard grounder to bounce past him for an error in the 10th inning, and Carlos Correa followed with a tiebreaking single that sent the Astros to their fifth straight win.
Red Sox starter Justin Masterson gave up five runs and eight hits in 3 2-3 innings.
Jose Altuve had three hits and two RBIs for the AL West-leading Astros, who won after wasting three leads in four innings.
Ramirez (0-1) hit Altuve with a pitch leading off the 10th, and he advanced on Napoli's error.
Correa singled for a 9-8 lead, Jon Singleton added a two-run single and Domingo Santana stole home on the back end of a double steal.
Roberto Hernandez (3-5) pitched a perfect inning, and Luke Gregerson got the final three outs.
Dan Straily, recalled from Triple-A Fresno and making his first start for Houston, allowed five runs — four earned — six hits and three walks in 4 2-3 innings.
After Correa's solo homer gave the Astros an 8-7 in the eighth and the Red Sox tied it on David Ortiz's RBI double.
With runners on first and third in the fifth, Ortiz was hit on the top of helmet sliding into second by Altuve's throw from second while attempting to complete an inning-ending double play on Ramirez's grounder. The ball caromed into the stands on the fly, allowing a run to score. Altuve was charged with an error and Ramirez advanced to second.
Astros: It was their first game following an injury to OF George Springer, who was placed on the 15-day DL with a fractured right wrist Thursday. He was injured on a 95 mph fastball thrown by Edinson Volquez in a win over Kansas City on Wednesday.
Red Sox: OF Daniel Nava, on the 15-day DL since May 26 with a strained left thumb, is on a rehab stint with Triple-A Pawtucket.
Both teams forgot how many outs there were on one play in the seventh. Astros 1B Chris Carter threw across the diamond attempting to get Alejandro De Aza, who was racing from second on a two-out grounder. De Aza went headfirst into third base, where Luis Valbuena made a tag. Earlier in the inning, Ramirez took a 3-2 pitch for a ball, stood at the plate and was told to go to first by plate umpire Cory Blaser.
Red Sox OF Mookie Betts was cut down trying to steal third with one out in the eighth.
"Obviously I messed up," he said. "Have to forget it."
Ortiz saved him big embarrassment by tying it at 8 with his double.
Astros: RHP Collin McHugh (9-3) is slated to start Saturday. He's won his last three starts, compiling a 2.45 ERA.
Red Sox: RHP Clay Buchholz (6-6) has won three straight starts and is 2-0 with a 1.52 ERA in his career against the Astros.