Pinch-hitter Ryan Lavarnway drove in the winning run with a single in the 11th inning, Jameson Taillon struck out a career-high 11 and the Pittsburgh Pirates beat the Kansas City Royals 2-1 on Tuesday night.

It was just the second at-bat of the season for the 30-year-old Lavarnway, the Pirates' fourth-string catcher. He hit .288 in 77 games in with Triple-A Indianapolis. Lavarnway has played 142 career games with five teams.

More Images
Pittsburgh Pirates starting pitcher Jameson Taillon delivers in the first inning of the team's baseball game against the Kansas City Royals in Pittsburgh, Tuesday, Sept. 18, 2018. (AP PhotoGene J. Puskar)

Pinch-hitter Ryan Lavarnway drove in the winning run with a single in the 11th inning, Jameson Taillon struck out a career-high 11 and the Pittsburgh Pirates beat the Kansas City Royals 2-1 on Tuesday night.

Pittsburgh Pirates' Josh Bell (55) slides safely into second with a double around the tag attempted by Kansas City Royals second baseman Whit Merrifield with umpire Carlos Torres making the call during the first inning of a baseball game in Pittsburgh, Tuesday, Sept. 18, 2018. (AP PhotoGene J. Puskar)

Pinch-hitter Hunter Dozier tied the game in the ninth with a double off Pirates closer Felipe Vazquez that scored Jorge Bonifacio. Left fielder Corey Dickerson threw to shortstop Jordy Mercer, who relayed home to throw out Salvador Perez and preserve the tie.

Kansas City Royals starting pitcher Eric Skoglund delivers during the first inning of a baseball game against the Pittsburgh Pirates in Pittsburgh, Tuesday, Sept. 18, 2018. (AP PhotoGene J. Puskar)

Kyle Crick (3-2) retired the side on 10 pitches in the 11th to earn the win.

Pittsburgh Pirates catcher Francisco Cervelli, right, celebrates with starting pitcher Jameson Taillon after making a swipe tag on Kansas City Royals' Ryan O'Hearn, who was out attempting to score on a fly out by' Brian Goodwin to end the top of the seventh inning of a baseball game in Pittsburgh, Tuesday, Sept. 18, 2018. (AP PhotoGene J. Puskar)

Eric Skoglund allowed three hits and struck out two in six innings, his first start this season in which he did not allow a run.

Pittsburgh Pirates catcher Francisco Cervelli, left, gets the swipe tag on Kansas City Royals' Ryan O'Hearn (66) who was out attempting to score on a fly out by Brian Goodwin during the seventh inning of a baseball game in Pittsburgh, Tuesday, Sept. 18, 2018. (AP PhotoGene J. Puskar)

Pirates: Frazier did not start but said he was "fine" after fouling a ball off his right knee and leaving Monday's game with discomfort. He grounded into a fielder's choice in the ninth and remained in the game in left field. ... C Elias Diaz (hamstring) made his first appearance since Aug. 31. He walked as a pinch-hitter in the ninth.

Starling Marte led off the 11th with an infield single off Burch Smith (1-6). Josh Bell walked and Burch struck out Francisco Cervelli before Adam Frazier was intentionally walked to load the bases, setting up Lavarnway's walk-off hit to shallow center.

Pittsburgh Pirates starting pitcher Jameson Taillon delivers in the first inning of the team's baseball game against the Kansas City Royals in Pittsburgh, Tuesday, Sept. 18, 2018. (AP PhotoGene J. Puskar)

Pittsburgh Pirates starting pitcher Jameson Taillon delivers in the first inning of the team's baseball game against the Kansas City Royals in Pittsburgh, Tuesday, Sept. 18, 2018. (AP PhotoGene J. Puskar)

Pinch-hitter Hunter Dozier tied the game in the ninth with a double off Pirates closer Felipe Vazquez that scored Jorge Bonifacio. Left fielder Corey Dickerson threw to shortstop Jordy Mercer, who relayed home to throw out Salvador Perez and preserve the tie.

Vazquez had not blown a save since May 31, a string of 24 consecutive opportunities converted.

Taillon threw seven scoreless innings, allowing four hits and a walk. His previous career high in strikeouts was 10, set on July 12.

Pittsburgh Pirates' Josh Bell (55) slides safely into second with a double around the tag attempted by Kansas City Royals second baseman Whit Merrifield with umpire Carlos Torres making the call during the first inning of a baseball game in Pittsburgh, Tuesday, Sept. 18, 2018. (AP PhotoGene J. Puskar)

Pittsburgh Pirates' Josh Bell (55) slides safely into second with a double around the tag attempted by Kansas City Royals second baseman Whit Merrifield with umpire Carlos Torres making the call during the first inning of a baseball game in Pittsburgh, Tuesday, Sept. 18, 2018. (AP PhotoGene J. Puskar)

Kyle Crick (3-2) retired the side on 10 pitches in the 11th to earn the win.

Colin Moran had a pinch-hit home run with two outs in the seventh inning, his 10th homer this season.

It looked like the Royals might get to Taillon in the top of the seventh. With runners on second and third, Brian Goodwin hit a flyball to right fielder Pablo Reyes, who threw out Ryan O'Hearn at the plate.

Kansas City Royals starting pitcher Eric Skoglund delivers during the first inning of a baseball game against the Pittsburgh Pirates in Pittsburgh, Tuesday, Sept. 18, 2018. (AP PhotoGene J. Puskar)

Kansas City Royals starting pitcher Eric Skoglund delivers during the first inning of a baseball game against the Pittsburgh Pirates in Pittsburgh, Tuesday, Sept. 18, 2018. (AP PhotoGene J. Puskar)

Eric Skoglund allowed three hits and struck out two in six innings, his first start this season in which he did not allow a run.

The Pirates improved to 14-5 in interleague play, the second-best record in the majors behind the Boston Red Sox.

TRAINER'S ROOM

Pittsburgh Pirates catcher Francisco Cervelli, right, celebrates with starting pitcher Jameson Taillon after making a swipe tag on Kansas City Royals' Ryan O'Hearn, who was out attempting to score on a fly out by' Brian Goodwin to end the top of the seventh inning of a baseball game in Pittsburgh, Tuesday, Sept. 18, 2018. (AP PhotoGene J. Puskar)

Pittsburgh Pirates catcher Francisco Cervelli, right, celebrates with starting pitcher Jameson Taillon after making a swipe tag on Kansas City Royals' Ryan O'Hearn, who was out attempting to score on a fly out by' Brian Goodwin to end the top of the seventh inning of a baseball game in Pittsburgh, Tuesday, Sept. 18, 2018. (AP PhotoGene J. Puskar)

Pirates: Frazier did not start but said he was "fine" after fouling a ball off his right knee and leaving Monday's game with discomfort. He grounded into a fielder's choice in the ninth and remained in the game in left field. ... C Elias Diaz (hamstring) made his first appearance since Aug. 31. He walked as a pinch-hitter in the ninth.

Royals: Perez was a late scratch with a recurrence of a nagging left thumb injury. He singled in the ninth. ... RHP Jorge Lopez (bruised rib) has still not thrown a between-starts bullpen session. His next turn in the rotation is Thursday against Detroit. The team has not announced a probable pitcher.

UP NEXT

Pittsburgh Pirates catcher Francisco Cervelli, left, gets the swipe tag on Kansas City Royals' Ryan O'Hearn (66) who was out attempting to score on a fly out by Brian Goodwin during the seventh inning of a baseball game in Pittsburgh, Tuesday, Sept. 18, 2018. (AP PhotoGene J. Puskar)

Pittsburgh Pirates catcher Francisco Cervelli, left, gets the swipe tag on Kansas City Royals' Ryan O'Hearn (66) who was out attempting to score on a fly out by Brian Goodwin during the seventh inning of a baseball game in Pittsburgh, Tuesday, Sept. 18, 2018. (AP PhotoGene J. Puskar)

Royals: Heath Fillmyer (3-1, 4.76 ERA) is scheduled to start the series finale Wednesday. The rookie allowed 10 runs over his previous two starts.

Pirates: Chris Archer (4-8, 4.66 ERA) has lost three straight decisions and is 1-4 with a 5.19 ERA since returning from an abdominal injury in early July.

More AP MLB: https://apnews.com/tag/MLB and https://twittter.com/AP_Sports