ST. PETERSBURG, Fla. (AP) Justin Verlander outlasted Chris Archer for his first win this season and the Detroit Tigers avoided a three-game sweep by beating the Tampa Bay Rays 2-1 on Wednesday.

Verlander (1-3), who retired his first 14 batters before Asdrubal Cabrera homered on an 0-1 pitch with two outs in the fifth, gave up one run, four hits and had 10 strikeouts.

Archer (9-8) lost a perfect game bid and the lead in the seventh inning. The right-hander, 0-4 over six starts since beating Toronto on June 23, allowed two unearned runs, three hits and struck out 11 in seven innings.

More from FoxSports

Jose Iglesias became the first Tigers' base runner with a one-out infield single that Cabrera fielded between short and third, but his off-balance one-hop throw wasn't in time.

After Cabrera was charged with an error for misplaying Yoenis Cespedes' grounder, the Tigers took a 2-1 lead on RBI singles by J.D. Martinez and Nick Castellanos, whose liner deflected off Cabrera's glove.

INDIANS 12, ROYALS 1

CLEVELAND (AP) - Corey Kluber took a shutout into the ninth, rookie Francisco Lindor hit a three-run homer and had a career-high four RBIs, and the Indians avoided a winless homestand with a victory Kansas City.

Michael Brantley, Yan Gomes and rookie Giovanny Urshela hit solo homers for Cleveland, which had been outscored 37-10 in losing the first six games of the homestand. Michael Bourn was 4 for 5 as Cleveland had a season-high 18 hits.

Kluber (6-11) held Kansas City to five hits. The reigning Cy Young Award winner retired the first 12 batters before Eric Hosmer's leadoff double in the fifth. Alex Rios' RBI groundout in the ninth scored the Royals' only run.

Kansas City starter Jeremy Guthrie allowed three home runs - all in the sixth inning - and hit three batters, including Brantley in the fifth. Indians manager Terry Francona was ejected by plate umpire Tom Woodring after Brantley was hit in the leg.

PIRATES 10, TWINS 4

MINNEAPOLIS (AP) - Andrew McCutchen hit a home run and turned an RBI single into race around the bases while Minnesota made two errors in a five-run sixth inning, helping Francisco Liriano and Pittsburgh beat Minnesota for a two-game sweep.

Jung Ho Kang homered for the second straight day for the Pirates, after going deep for the go-ahead run in the ninth the night before. McCutchen's two-run, two-strike, two-out drive off Ervin Santana (2-1) in the fifth inning tied the game at 3, and the Twins unraveled in the sixth.

One run scored on a wild pitch. Then Santana walked two straight. Starling Marte hit a sacrifice fly, and McCutchen hit a sharp single that bounced in front of left fielder Eddie Rosario. The ball skipped past him to the warning track, allowing another run to score and McCutchen to reach third.

The slow-rolling relay throw scooted underneath Eduardo Nunez's glove for another error that allowed McCutchen to score - but not before he collided with Nunez, contact that was hard enough to knock them both to the ground.

Liriano (7-6) improved to 3-0 in his last six starts. The Pirates have won five of their last six games to tighten their grip on the NL's first wild-card spot.

GIANTS 5, BREWERS 0

SAN FRANCISCO (AP) - Hunter Pence doubled in Matt Duffy to break a scoreless tie in the seventh inning and San Francisco held on to beat Milwaukee.

Pence also made two sparkling defensive plays in the outfield as the Giants bounced back from their only loss on this six-game homestand to beat the Brewers for the fifth time in six games this season.

Ehire Adrianza added a two-run single and Brandon Crawford had a sacrifice fly for the defending World Series champs, who scored all of their runs in the fourth.

San Francisco has won 10 of 12 games since the All-Star break.

Hunter Strickland (1-1) retired three batters for the win, his first since Sept. 27, 2014.

CUBS 3, ROCKIES 2

CHICAGO (AP) - Jon Lester struck out 14, one shy of his career high and the most for a Cubs pitcher in more than a decade, leading Chicago over Colorado.

A day after he was acquired from Toronto, Jose Reyes was 1 for 3 with a walk and a stolen base in his Rockies' debut. The four-time All-Star, obtained in a trade that sent Troy Tulowitzki to Toronto, batted second and singled in his first at-bat for Colorado, then was caught stealing.

Lester (6-8) struck out seven of his first eight hitters and nine of the first 14. He allowed two runs, five hits and one walk in eight innings.

His strikeout high was set for Boston on May 3 last year against Oakland. He became the first Cubs pitcher to strike out 14 since Mark Prior had 16 on Sept. 30, 2004.

DIAMONDBACKS 8, MARINERS 2

SEATTLE (AP) - Welington Castillo homered twice off Seattle ace Felix Hernandez, including a two-run shot in the first inning, and Arizona won its fifth straight.

Arizona completed its first sweep of Seattle and fifth this season thanks Castillo's two long balls. Castillo hit a two-run homer off Hernandez (12-6) as part of Arizona's four-run first inning, then added a solo shot leading off the fourth inning. He became just the sixth player to homer twice in the same game off Hernandez.

Castillo, who was on Seattle's roster briefly earlier in the season before being traded to Arizona, homered three times in the series.

Patrick Corbin (2-3) allowed just one run and three hits in six innings, winning for the first time since his season debut on July 4 as he continues to come back from Tommy John surgery.