ST. LOUIS -- Yairo Munoz was just looking for a fly ball to the outfield.
Instead, he connected for the biggest homer of his career.
Munoz capped St. Louis' five-run ninth with a three-run drive, lifting the Cardinals to a 10-8 win over the Pittsburgh Pirates on Thursday night.
With runners on the corners and no one out, Munoz drove the first pitch he got from Felipe Vazquez (2-2) over the wall in center for the second homer of his rookie season.
"I was just hoping to hit a deep fly, get that runner in from third," Munoz said. "But when I hit it, I knew it was going far."
Francisco Cervelli hit a tiebreaking three-run homer in the eighth to give Pittsburgh an 8-5 lead. But the Pirates couldn't hold on and lost in St. Louis for the fifth straight time and 12th in the last 14.
Josh Bell also homered for the Pirates.
Munoz also had a two-run single in the first inning. He had five RBI in 21 games coming into the day.
Pinch hitter Luke Voit sparked the winning rally with a two-run single, trimming Pittsburgh's lead to 8-7.
"I was hoping I was going to get an opportunity to help the team," Voit said. "Unbelievable way to kick off the series."
Voit was called up from Triple-A Memphis earlier in the day. It was his first at-bat with the Cardinals this season.
"There's guys that get overwhelmed in that situation and he's not like that," St. Louis manager Mike Matheny said. "He had that look in his eye."
Munoz followed with his game-ending homer, the first by a St. Louis rookie since Kolten Wong on July 8, 2014.
"This is something so big, I can't put it into words," Munoz said. "I'm so happy for this moment."
Mike Mayers (2-0), also recalled earlier in the day, picked up the win with 1 1/3 scoreless innings. He struck out two and needed just 12 pitches to record the four outs.
Pittsburgh rallied from an early 4-0 deficit thanks to Cervelli's homer.
"This is a rough way to finish that game," manager Clint Hurdle said. "It was a really good battle for us. We just weren't able to even record an out."
Gregory Polanco had his first three-hit game for the Pirates since opening day. Vazquez suffered his fourth blown save in the last five chances.
Pirates: RHP Ivan Nova, placed on the 10-day disabled list with a sprained right ring finger on Monday, likely will pitch in a simulated game before returning to the rotation. RHP Nick Kingham will start in Nova's spot on Sunday.
Cardinals: RHP Alex Reyes was placed on the 10-day disabled list with a right latissimus dorsi strain after tossing four scoreless innings on Wednesday in Milwaukee. Cardinals vice president and general manager Michael Girsch indicated Reyes will miss at least two starts and likely more. "It is significant," Girsch said. ... C Yadier Molina will make a rehab start for Double-A Springfield on Saturday. Molina suffered a pelvic injury with a traumatic hematoma on May 5. ... RHP Carlos Martinez gave up two runs and five hits in four innings for Springfield in a rehab start against Corpus Christi on Thursday. He stuck out four and threw 63 pitches.
Pirates RHP Jameson Taillon (2-4, 4.53 ERA) will face the Cardinals' Miles Mikolas (6-0, 2.58 ERA) in the second game of the four-game series on Friday. Taillon is 1-1 with a 4.45 ERA in six career starts against St. Louis. Mikolas is 4-0 with a 3.13 ERA in four starts against Central Division foes this season.
More AP baseball: https://apnews.com/tag/MLBbaseball
Duvall drives in 4, Marlins roll past Diamondbacks 8-0
— Adam Duvall hit his fifth home run and finished with four RBI, Miguel Rojas scored three times and five Miami pitchers scattered five hits to lead the Marlins over the Arizona Diamondbacks 8-0 on Wednesday night.
Baltimore Orioles' John Means and others who just missed pitching a perfect game
The Orioles ace -- yes, ace -- barely missed a perfect game, but he's been nothing short of fantastic all season.
Rojas triple, Duvall HR highlight big 2nd inning in Marlins' win
Miguel Rojas ropes a triple to center, then later in the inning Adam Duvall hits a home run 110.7 MPH to left giving Miami a 6-0 lead in the second inning.
Locastro goes full extension in center for diving catch
Tim Locastro lays out and tumbles in center field for the impressive catch.
Marisnick ties game with 2-run homer
Jake Marisnick launches a two-run home run to left-center field to tie the Cubs with the Dodgers at 2-2.
Muncy breaks the ice with a solo homer vs. Cubs
Max Muncy launches a solo home run in the fourth inning to give the Dodgers a 1-0 lead vs. the Cubs.