HOUSTON (CBSDFW.COM/AP) — Pitcher Kyle Gibson threw a four-hitter and Joey Gallo hit a ground-rule RBI double with two outs in the ninth inning to lift the Texas Rangers over the Houston Astros 1-0 on Wednesday night.

It was the first career shutout for the 32-year-old Gibson and third complete game — his previous one came in August 2016 with Minnesota against Atlanta.

READ MORE: Frisco Memorial Girls' And Boys' Basketball Teams No Longer The New Kids On The Block

Gibson (2-5) walked three and struck out a season-high nine to earn his first win since Aug. 15. He was 0-3 with an 8.10 ERA and eight homers allowed in his past five starts.

Gibson struggled to articulate what this performance meant to him after such a difficult stretch.

“It’s hard to put into words,” he said. “So much over the past few weeks has gone into that right there. Lots of discussions, lots of work in the bullpen, talking with a lot of different people. All the while trying to make sure I keep that same confidence and never let one or two outings shake who I am on the mound.”

The victory snapped a seven-game road skid for the Rangers, who are 5-18 away from home this season.

Leody Taveras singled on a sharp grounder that first baseman Yuli Gurriel couldn’t scoop up to start the ninth and advanced to second on a groundout by Isiah Kiner-Falefa for the second out.

Gallo had two strikes when he connected off Ryan Pressly (1-3) for a line drive that bounced just inside the right field line to send Taveras home.

Gallo, who is batting just .188 this season, was glad he could get a run on the board to help Gibson get the win.

“For me, I just wanted to come through for the team,” Gallo said. “I haven’t had the best at-bats, hit a few balls hard, but as a team, we just haven’t put anything together. I knew I had an opportunity with a guy on second.”

READ MORE: Loophole In Federal Surprise Medical Bill Ban Leaves Patients At Risk Of High, Unexpected Ambulance Bills

Gibson struck out Jose Altuve and Michael Brantley in the ninth before a double by Alex Bregman. After a short mound visit, Gibson retired Kyle Tucker on a lineout to first to end the game. The players on the field and in the Rangers dugout began to cheer loudly after the final out, and Gibson jumped up and down and smiled.

“That’s the best game he’s thrown in a long time,” Houston manager Dusty Baker said. “He threw a heck of a game. It really hurts to lose 1-0.”

Gibson and Houston’s Lance McCullers Jr. made this one a pitchers’ duel. McCullers fired seven shutout innings in his return after a 10-day stint on the injured list with nerve irritation in his neck. He allowed two hits and struck out eight without a walk.

“I was happy with the way I mixed my pitches and executed,” McCullers said. “Sad that we couldn’t get the team W. That’s what we care about.”

McCullers allowed a double to Rougned Odor with two outs in the second before sailing through the next few innings, retiring 12 in a row before Taveras doubled with two outs in the sixth. But the right-hander got Willie Calhoun to pop out to end that inning and pitched a perfect seventh to end his night.

Josh James took over for the eighth and allowed a two-out single to Ronald Guzmán before striking out Jeff Mathis.

Gibson struggled with control early and walked two of his first four batters. But he struck out Tucker to end the first inning as the first of six straight Astros he retired. Altuve singled with two outs in the third, but Gibson set down his next 11 batters before Tucker singled with one out in the seventh.

Tucker was caught stealing and Gurriel lined out to end the frame. Gibson walked Martín Maldonado with two outs in the eighth before fanning George Springer.

MORE NEWS: 1 Dead, 1 Injured After Shooting In Forest Hill

(© Copyright 2020 CBS Broadcasting Inc. All Rights Reserved. The Associated Press contributed to this report.)