KANSAS CITY — Salvador Perez capped Kansas City's five-run ninth inning with a game-ending grand slam, lifting the Royals to an 8-4 victory over the Minnesota Twins on Friday night.

Rosell Herrera sparked the winning rally with a one-out double off Trevor Hildenberger (4-4), who took over as Minnesota's closer after Fernando Rodney was traded to Oakland last month. Whit Merrifield then hit an RBI single and advanced to third on Adalberto Mondesi's base hit.

Manager Paul Molitor then put in Logan Forsythe, giving the Twins five infielders, and Alex Gordon was intentionally walked to load the bases. But Perez thwarted the strategy with a drive to center for his 26th homer.

The Twins' loss lowered Cleveland's magic number for clinching the AL Central title to one.