Nathan Ray Seebeck-USA TODAY Sports

MJ Melendez's two-out infield single in the ninth inning drove in the tiebreaking run as the Kansas City Royals rallied past the Tampa Bay Rays 6-5 Thursday night in St. Petersburg, Fla.

Melendez, who went 3-for-4 with two RBIs, a run, a walk and two stolen bases, chopped a ball near first that Yandy Diaz failed to flip to pitcher Pete Fairbanks (0-2) covering first base. That plated Maikel Garcia, who led off with a walk and then stole his second and third bases of the game.

Drew Waters went 2-for-4 with a solo homer, three RBIs and a stolen base. Garcia added two hits, two runs and an RBI. Dairon Blanco tripled and scored for the Royals, who stole seven bags.

Opener Jose Cuas made his first start in 80 career appearances and allowed two runs in 1 1/3 innings.

Aroldis Chapman (3-2), the Royals' sixth pitcher, earned the win by striking out the side in the eighth. Scott Barlow notched his ninth save.

Tampa Bay's Randy Arozarena went 3-for-5 with three RBIs, and Diaz finished with three hits and two runs.

Seeking his major-league-leading 12th win, Rays starter Shane McClanahan instead was removed in the top of the fourth after a tense exchange with manager Kevin Cash and the game tied at 2.

McClanahan, who threw a season-low 66 pitches over 3 2/3 innings, gave up two runs on four hits while fanning three and walking two.

The Rays later announced that McClanahan left with mid-back tightness.

Diaz singled to lead off the first, went to second when Luke Raley was hit by Cuas, and scored on Arozarena's single. Isaac Paredes' sacrifice fly then brought in Raley.

In the third, the Royals managed to tie it after Blanco's leadoff triple to left and Garcia's single. After a walk pushed Garcia to second, Melendez singled him home.

Waters launched his second homer of the season narrowly inside the right-field foul pole for a brief lead in the seventh, but Francisco Mejia matched it in the bottom half with his third of the season.

The Rays were without star shortstop Wander Franco, who was benched for at least the first two games of the series due to his failure to handle his failures in a professional manner, according to manager Kevin Cash.

More must-reads:

TODAY'S BEST
Auburn's Hugh Freeze uncomfortable with 'bidding wars' for top players in transfer portal
Luka Doncic hands OKC first playoff loss with gutsy Game 2 effort
Three takeaways as Rangers take commanding 3-0 series lead on Hurricanes
Cavaliers punch back, blow out Celtics in Game 2
Coach: Oilers star center could miss Game 2 vs. Canucks
Watch: Cavaliers' Evan Mobley turns defense into offense in Game 2 vs. Celtics
Xander Schauffele tops stacked leaderboard after first round of Wells Fargo Championship
Suns talks with head-coaching target 'expected to move quickly'
Knicks get even more bad injury news ahead of Game 3
Frank Vogel fell victim to a Suns ownership group eager to win
2008 Celtics champion sentenced to prison despite emotional plea
Skip Bayless makes huge Tom Brady prediction after Netflix roast
14-year-old phenom signs unprecedented MLS deal that includes future Man City transfer
Pacers coach claims officials are biased against 'small market' teams
Hall of Famer makes bold prediction about Russell Wilson, Steelers
49ers Hall of Fame CB Jimmy Johnson dies
Rams make surprising move with former team captain
NBA announces discipline for Bucks' Patrick Beverley
Hall of Fame RB defends Najee Harris after Steelers decline fifth-year option
Pacers file shocking number of questionable calls after Game 2 loss vs. Knicks

Want more MLB news?

Join the hundreds of thousands of fans who start their day with Yardbarker's Morning Bark, the best newsletter in sports.