Lyles won for the first time in nearly two months, Brandon Barnes doubled twice and drove in two runs, and the Houston Astros beat the Oakland Athletics 5-4 Tuesday night to snap a six-game losing streak.
"It was nerve-racking in here watching the game," Lyles said. "Me and a few other guys were going a little crazy. It's way more nerve-racking to watch a game you've pitched in than to be out there."
Lyles had to wait out a possible game-winning home run before he could breathe easy.
With a runner on first base in the ninth, Chris Young hit an 0-1 pitch from Lo down the left field line. The ball curved just outside the foul pole and third base umpire Doug Eddings immediately ruled it foul.
After A's manager Bob Melvin came out to argue the call, the four umpires went underneath the stands to review the play before confirming the original ruling.
"I was able to see it a couple times on replay and knew we were OK," Lyles said.
Juan Castro singled in the fifth to extend his hitting streak to a career-high 11 games, scored a run and added a sacrifice fly for Houston. Matt Dominguez added two hits, including one of four doubles off A's starter Bartolo Colon, who lost in his second bid to become the first pitcher in major league history to win 15 games with four American League teams.
"I knew if the ball goes foul, we had a chance to win," Barnes said. "Any time you put up a good game, beat up the starting pitcher a little bit and get into the bullpen, you have a chance."
The Astros had dropped 11 of the first 12 games this season between the division rivals before knocking Colon (14-5) out of the game early and holding off a late rally.
"The first couple of times we faced him we were still trying to figure him out," Barnes said. "It definitely helped to have seen him before."
Lyles (5-6) sailed through his first career appearance against the A's. He gave up five hits, allowed only one runner past second base and got Oakland to ground into two double plays.
That ended an eight-start winless skid for the Houston right-hander, who had been 0-5 since his last victory on June 18.
"It's been awhile for me personally," Lyles said. "It was nice to get seven innings. I haven't done that for a while. Overall I was attacking the zone, keeping the ball down."
Houston's bullpen made Lyles sweat it out.
Lo recorded the final four outs for his first career save.
Barnes got into a lengthy battle with Colon in the second before doubling in Castro and Dominguez to put the Astros up 2-0.
After Castro and former A's first baseman Chris Carter drove in runs in the third, Barnes doubled again leading off the fourth and scored on a double play to make it 5-0.
NOTES: Eight of Houston's nine starters had at least one hit. ... Castro returned to the Astros lineup after sitting out two games with a hip injury. ... The Astros sent RHP Jorge DeLeon to Triple-A Oklahoma City after the game and recalled IF Marwin Gonzalez. ... Barnes was 3 for 27 entering the night.