Patrick Corbin took a one-hitter into the eighth inning to earn his first win with Washington, Wilmer Difo homered and the Nationals beat the punchless San Francisco Giants 4-2 Thursday.

Signed to a $140 million, six-year contract in December after pitching for six seasons in Arizona, Corbin started three games without a decision with his new team before throwing a gem in the deciding matchup of a three-game series.

Corbin (1-0) struck out nine, walked one and a hit a batter over 7 2/3 innings against a struggling San Francisco offense that came in with a .208 average. The lone hits against the 29-year-old lefty were a fifth-inning double by Evan Longoria and a two-out RBI double by Erik Kratz in the eighth.

Washington Nationals starting pitcher Patrick Corbin delivers a pitch during the first inning of a baseball game against the San Francisco Giants, Thursday, April 18, 2019, in Washington. (AP Photo/Nick Wass)
Washington Nationals starting pitcher Patrick Corbin delivers a pitch during the first inning of a baseball game against the San Francisco Giants, Thursday, April 18, 2019, in Washington. (AP Photo/Nick Wass)

After Kratz broke up the shutout, Corbin exited to cheers from most of the 26,085 fans at the weekday afternoon game in the nation’s capital.

Kyle Barraclough entered and retired pinch-hitter Buster Posey. Sean Doolittle worked the ninth, giving up three hits and a run while earning his second save.

The Giants had problems with Corbin’s fastball and the strike zone of home plate umpire Ryan Additon. San Francisco manager Bruce Bochy was tossed in the fifth inning and left fielder Brandon Belt was ejected in the seventh after he threw down his helmet in disgust over a called third strike.

San Francisco Giants right fielder Steven Duggar (6) leaps and misses a ball that went for a double by Washington Nationals' Ryan Zimmerman during the first inning of a baseball game, Thursday, April 18, 2019, in Washington. (AP Photo/Nick Wass)
San Francisco Giants right fielder Steven Duggar (6) leaps and misses a ball that went for a double by Washington Nationals’ Ryan Zimmerman during the first inning of a baseball game, Thursday, April 18, 2019, in Washington. (AP Photo/Nick Wass)

There were a combined 23 strikeouts in the game, 12 of them called.

San Francisco starter Drew Pomeranz (0-2) gave up four runs and six hits in 4 2/3 innings. He struck out seven but walked three.

After the Giants went down in order to start the game, Ryan Zimmerman hit a two-out RBI double in the bottom half for a 1-0 lead. San Francisco is the only team in the majors that hasn’t scored in the first and is 6 for 63 (.095) in the inning.

San Francisco Giants starting pitcher Drew Pomeranz delivers a pitch during the first inning of a baseball game against the Washington Nationals, Thursday, April 18, 2019, in Washington. (AP Photo/Nick Wass)
San Francisco Giants starting pitcher Drew Pomeranz delivers a pitch during the first inning of a baseball game against the Washington Nationals, Thursday, April 18, 2019, in Washington. (AP Photo/Nick Wass)

In the third, Anthony Rendon extended his career-best hitting streak to 16 games with a two-out double and scored on a double by Juan Soto.

Difo hit a solo shot in the fourth, and Pomeranz was lifted after issuing a bases-loaded walk in the fifth.

TRAINER’S ROOM

Washington Nationals' Anthony Rendon celebrates in the dugout after he scored on a double by Juan Soto during the third inning of a baseball game against the San Francisco Giants, Thursday, April 18, 2019, in Washington. (AP Photo/Nick Wass)
Washington Nationals’ Anthony Rendon celebrates in the dugout after he scored on a double by Juan Soto during the third inning of a baseball game against the San Francisco Giants, Thursday, April 18, 2019, in Washington. (AP Photo/Nick Wass)

Giants: Tyler Austin started at first base after missing six games with inflammation in his right elbow. Asked if he was concerned about the elbow, Bochy replied, “To be honest, yes. That’s why he’s not in left field.”

Nationals: Victor Robles showed no ill effects after crashing into the wall Wednesday night chasing a HR by Gerardo Parra. “We checked on him last night. He was jumping around, actually, saying he was fine,” manager Dave Martinez said. … Martinez is looking for a proper balance for Doolittle, who has pitched in nine of Washington’s first 17 games. “You can’t burn him out right now. We have to make sure we’re careful with him so we have him in August and September.”

CAPS FAN

Martinez showed up to his pregame press conference wearing a hat that read, “ALL CAPS,” a show of support for the defending Stanley Cup champion Washington Capitals.

“I think they’re doing well. They’ve got their boxing gloves going right now,” Martinez said, punching the air with both fists. In a Game 3 loss to Carolina, Caps star Alex Overchkin got into a fight with rookie Andrei Svechnikov, who ended up in concussion protocol.

UP NEXT

Giants: LHP Madison Bumgardner (1-2, 3.12 ERA) helps San Francisco opens a three-game series in Pittsburgh on Friday night.

Nationals: RHP Annibal Sanchez (0-1, 4.86) returns to his roots in the opener of a three-game set in Miami on Friday. Sanchez began his career with the Marlins, going 44-45 in 133 games from 2006-11.

___