ST. LOUIS (AP) -- Cardinals manager Mike Matheny had no trouble with closer Jason Motte's two-strike pitch to pinch-hitter Billy Butler.
Problem is, either did Butler.
Down to the Royals' last strike in the ninth, Butler hit Motte's fastball 438 feet for a tying home run and Kansas City went on to beat St. Louis 5-3 in 15 innings Sunday.
The home run was Butler's 12th this season, but the first of his career as a pinch hitter.
"I would have thrown the exact same pitch," Matheny said. "He threw the exact same pitch by him twice. If he would have thrown something else, I probably would have been upset."
Butler, though, was ready for the fastball.
"He blew the pitch right before by me," Butler said. "I just figured I had to shorten up and put the barrel on it. That's what I did."
Motte said he was just trying to end the game.
"That's the way it is" Motte said. "One mistake in those situations (can cost you). Give credit to Butler. Sometimes you have to tip your cap."
Yuniesky Betancourt hit a two-run homer with two outs in the 15th to lift the Royals to the win.
"I don't even know if I could (describe it)," Kansas City manager Ned Yost said. "We won, that's all I can say."
Yost and Matheny combined to use all 43 position players in the 5-hour game.
Betancourt gave the Royals a 3-2 lead in the 14th on an RBI double, but Kansas City closer Jonathan Broxton (1-1) gave it back. Betancourt then came through with his next opportunities.
"That's destiny," Betancourt said of his two RBI chances through an interpreter. "It was my opportunity to put the team ahead twice. I was trying to do my best and it happened."
Jarrod Dyson began 15th inning with a bunt single off St. Louis reliever Eduardo Sanchez (0-1). Dyson was sacrificed to second and, after an out, Betancourt hit an 0-1 pitch into the Royals' bullpen.
Alex Gordon opened the 14th with his fifth walk, tying the club record he set on July 30, 2008, at Oakland.
Yadier Molina, the last available St. Louis position player, had a pinch-hit RBI single in the 14th off Broxton to tie it 3-all. Broxton was perfect in the 15th for the victory.
"This is as tough as they have been," Matheny said. "I don't know any other way to say it."
Matt Holliday and Allen Craig hit back-to-back home runs for the Cardinals and Carlos Beltran extended his hitting streak to 10 games with a first-inning single. Beltran is batting .462 (18 for 39) during his streak.
Humberto Quintero drove in the Royals' other run with an RBI single in the second off Cardinals starter Adam Wainwright, who allowed one run in seven innings.
Royals starter Luis Mendoza was cruising with a 1-0 lead with one out in the sixth when Holliday hit a 434-foot drive to the bleachers in left-center. The homer was Holliday's second in two days and 12th overall. Two pitches later, Craig hit his eighth home run down the line in left, a 400-foot shot, to give the Cardinals a 2-1 advantage.
Mendoza lasted six innings, giving up two runs while striking out five and walking one.
NOTES: Umpire Kerwin Danley, who was treated for dehydration after working the plate Saturday, was on medical leave Sunday. He was replaced by Mike Estabrook. ... Royals second baseman Chris Getz left the game with a lower leg strain while trying to get to Beltran's first-inning single. ... Cardinals shortstop Rafael Furcal, mired in a 2-for-31 slump, was not in the starting lineup for the second time in three games. ... Mendoza has not won since May 13 (three starts). ... The homers by Holliday and Craig marked the sixth time the Cardinals have gone back-to-back. . . . Holliday left the game in the eighth for a pinch runner due to what Matheny said was a leg injury. "He's got a little something going on," Matheny said. "We got to a situation where we could get him out and it made sense."