Ramirez came up as a pinch-hitter with the bases loaded against Steve Garrison and pounded a 1-0 pitch over the center-field wall. Moore followed with his drive to left field, his second homer of the Cactus League. It was the Royals' second five-run inning.
D-backs starter Randall Delgado, acquired in the Justin Upton trade with Atlanta, was tagged for five runs (four earned) on six hits in the first inning. But he didn't get much help from his defense. Left fielder Willie Bloomquist struggled trying to catch Chris Getz's double that started the trouble, and right fielder Gerardo Parra and third baseman Matt Davidson made errors.
"I felt physically ready, but obviously a little bit out of control, missing location. I was leaving the ball a little bit up," Delgado said.
Singles by Eric Hosmer, Butler, Moustakas, Jeff Francoeur and Elliot Johnson followed Getz's double. None of that helped Delgado's bid for Arizona's fifth rotation spot.
The D-backs came back with three runs in the second. After a double play, Royals starter Chris Dwyer issued two walks around Rod Barajas' double and was relieved with the bases loaded. Nate Adcock gave up a two-run single to John McDonald and another run scored on Getz's error at second base.
Mark Teahen's single, a wild pitch by Royals reliever Noel Arguelles and Barajas' single pulled the D-backs within 5-4 in the fourth.
The Royals piled up four runs in the fourth against Chase Anderson as Butler delivered a two-run double and Moustakas an RBI single.
Up next for D-backs: The D-backs have their first split-squad games of the spring with half the team traveling to Tempe to face the Angels and the other staying at Salt River Fields to host the A's and former manager Bob Melvin. Josh Collmenter will start against the A's. The right-hander began the 2012 season in the rotation before winding up in the bullpen. This year, he is penciled in to be the team's long man out of the bullpen. Left-hander David Holmberg will start against the Angels.
Dick Kaegel is a reporter for MLB.com. This story was not subject to the approval of Major League Baseball or its clubs.