Chad Pinder’s two-out RBI single in the ninth inning lifted the Oakland Athletics to a 6-5 victory over the Texas Rangers on Wednesday.

Stephen Piscotty singled with one out off Chris Martin (1-1) and then stole second base. After Khris Davis flew out, Pinder looped a soft hit into right field. Piscotty slid into home plate to beat a wide throw home from Nomar Mazara as the A’s dugout emptied, mobbing Pinder near first base.

Matt Chapman and Marcus Semien homered to help the A’s complete a three-game sweep. Nick Hundley had two hits and Jurickson Profar added an RBI single to snap an 0-for-17 funk.

Oakland Athletics' Stephen Piscotty (25) slides in to home to score the winning run as Texas Rangers catcher Isiah Kiner-Falefa, left, waits for the throw during the ninth inning of a baseball game in Oakland, Calif. (AP Photo/Jeff Chiu)
Oakland Athletics’ Stephen Piscotty (25) slides in to home to score the winning run as Texas Rangers catcher Isiah Kiner-Falefa, left, waits for the throw during the ninth inning of a baseball game in Oakland, Calif. (AP Photo/Jeff Chiu)

Mazara homered twice for Texas and Logan Forsythe also went deep as the Rangers fell to 2-7 on the road.

Blake Treinen (1-1) retired three batters and got a big double play in the ninth to earn the win.

Oakland led 3-1 and 5-3 but Texas rallied to tie each time.

Oakland Athletics' Chad Pinder, second from right, is congratulated by teammates after driving in the winning run against the Texas Rangers during the ninth inning of a baseball game in Oakland, Calif. (AP Photo/Jeff Chiu)
Oakland Athletics’ Chad Pinder, second from right, is congratulated by teammates after driving in the winning run against the Texas Rangers during the ninth inning of a baseball game in Oakland, Calif. (AP Photo/Jeff Chiu)

The game was delayed for several moments in the ninth inning after Delino DeShields grounded into an inning-ending double play. Rangers manager Chris Woodward came out and engaged all four umpires in a lengthy discussion as his players remained in the dugout.

Replays appeared to show that A’s second baseman Profar came off the bag before receiving the throw from Semien.

Oakland stranded two runners in the eighth when Semien flew out to center field and Ramon Laureano was doubled up off second base.

Texas Rangers' Jeff Mathis, left, scores a run past Oakland Athletics pitcher Joakim Soria (48) during the seventh inning of a baseball game in Oakland, Calif. (AP Photo/Jeff Chiu)
Texas Rangers’ Jeff Mathis, left, scores a run past Oakland Athletics pitcher Joakim Soria (48) during the seventh inning of a baseball game in Oakland, Calif. (AP Photo/Jeff Chiu)

Given another shot in the ninth, the A’s came through on Pinder’s first career game-ending hit.

Texas’ Kyle Dowdy lasted three innings in his first career start. He gave up three runs with three walks and two strikeouts.

TRAINERS ROOM

Texas Rangers center fielder Delino DeShields catches a fly ball hit by Oakland Athletics' Marcus Semien during the eighth inning of a baseball game in Oakland, Calif. (AP Photo/Jeff Chiu)
Texas Rangers center fielder Delino DeShields catches a fly ball hit by Oakland Athletics’ Marcus Semien during the eighth inning of a baseball game in Oakland, Calif. (AP Photo/Jeff Chiu)

Rangers: 2B Rougned Odor has started a rehab assignment with Triple-A Nashville. Odor has been on the injured list since April 11 with a right knee sprain. … 1B Ronald Guzman (right hamstring strain) flew to Arizona for extended spring training.

Athletics: Matt Olson is getting closer to returning after undergoing right hand surgery in late March. The first baseman has been hitting soft toss in the batting cage and could begin a rehab assignment next week. … Top pitching prospect Jesus Luzardo played catch for the first time since being shut down with a muscle strain in his left shoulder.

UP NEXT

Texas Rangers' Logan Forsythe, right, is congratulated by third base coach Tony Beasley after hitting a solo home run against the Oakland Athletics during the fourth inning of a baseball game in Oakland, Calif. (AP Photo/Jeff Chiu)
Texas Rangers’ Logan Forsythe, right, is congratulated by third base coach Tony Beasley after hitting a solo home run against the Oakland Athletics during the fourth inning of a baseball game in Oakland, Calif. (AP Photo/Jeff Chiu)

Rangers: Adrian Sampson was penciled in to start against the Mariners in Seattle on Thursday but those plans have changed after Sampson pitched three innings in relief Wednesday. No replacement has been announced.

Athletics: RHP Mike Fiers (2-2, 8.28) faces the Blue Jays in Toronto on Friday. Fiers’ ERA is the second-highest in the majors among pitchers with 20 or more innings.

__

Oakland Athletics' Matt Chapman hits a solo home run against the Texas Rangers during the fifth inning of a baseball game in Oakland, Calif. (AP Photo/Jeff Chiu)
Oakland Athletics’ Matt Chapman hits a solo home run against the Texas Rangers during the fifth inning of a baseball game in Oakland, Calif. (AP Photo/Jeff Chiu)

More AP MLB: https://apnews.com/MLB and https://twitter.com/AP_Sports

Oakland Athletics left fielder Chad Pinder catches a fly ball hit by Texas Rangers' Shin-Soo Choo during the fifth inning of a baseball game in Oakland, Calif. (AP Photo/Jeff Chiu)
Oakland Athletics left fielder Chad Pinder catches a fly ball hit by Texas Rangers’ Shin-Soo Choo during the fifth inning of a baseball game in Oakland, Calif. (AP Photo/Jeff Chiu)
Oakland Athletics' Marcus Semien hits a three-run home run against the Texas Rangers during the second inning of a baseball game in Oakland, Calif. (AP Photo/Jeff Chiu)
Oakland Athletics’ Marcus Semien hits a three-run home run against the Texas Rangers during the second inning of a baseball game in Oakland, Calif. (AP Photo/Jeff Chiu)

View more: