KANSAS CITY, Mo. — The Kansas City Royals hired Mike Matheny on Thursday, bringing in a manager who took the cross-state Cardinals to the World Series six years ago before a three-season swoon cost him his job.

The 49-year-old Matheny went 591-474 with the Cardinals from 2012-18 and was the first manager to reach the post-season his first four seasons. The Cardinals reached the World Series in 2013, losing to the Boston Red Sox, but Matheny was fired in July 2018 as the team was headed toward a third straight season out of the playoffs.

Matheny was hired last November by the Royals as a special adviser for player development and he was in prime position to succeed Royals manager Ned Yost, who announced his retirement last month.

"Our entire organization is delighted to announce and celebrate the hiring of Mike Matheny," said Dayton Moore, the Royals general manager. "Every department has had the pleasure to work and interact with him this past season. Through this interaction, it became very clear to our leadership team that Mike is the obvious person to lead our baseball team."

The Royals are coming off another 100-loss season and in the midst of a massive rebuilding effort after their back-to-back World Series appearances in 2014-15. They have a wave of young position players and a promising batch of pitching prospects.

Matheny was a Gold Glove-winning catcher and he succeeded Tony La Russa as Cardinals manager after St. Louis won the 2011 World Series. The Cardinals were 216-201 in his final two-plus campaigns — the Cardinals' first in-season managerial change since Joe Torre was replaced by Mike Jorgensen in 1995.

The Royals will be his second manager's job and Kansas City will be counting on his experience in the post-season — he managed 43 post-season games in St. Louis — as well as his ability to develop all the young talent on the roster.