Alex Avila hit a pair of homers, including the go-ahead, two-run blast in the bottom of the eighth inning, boosting Detroit to a 7-6 win over Tampa Bay.

Avila belted a solo homer to right off Wade Davis in the sixth inning, getting the Tigers within a run. Then in the eighth, Matt Joyce caught Andy Dirks' fly ball tight to the line in right. Jhonny Peralta walked to set up Avila. Cesar Ramos (0-1) came in to replace Joel Peralta and served up Avila's homer over the wall in left.

Miguel Cabrera crushed a three-run homer for the Tigers, who overcame four errors to capture their third win in a row, including the first two of this three-game series.

Joyce had three hits, including a two-run homer, but the Rays lost for the fifth time in six contests.

Tigers starter Justin Verlander, who is unbeaten in his last five starts, got off the hook after yielding nine hits and six runs over six frames.

Davis allowed eight hits and five runs -- four earned -- over six innings.

Al Alburquerque (1-1) picked up his first major league win. Joaquin Benoit gave up a two-out single to Johnny Damon, but then retired Evan Longoria on a force play at second to end the game to lock down his first save of the year.

Detroit had men on first and second with two outs in the second when B.J. Upton dropped Austin Jackson's soft fly ball to center. That allowed Jhonny Peralta to score the game's first run.

Sean Rodriguez came home on John Jaso's groundout in the top of the third, and the Rays went ahead 3-1 in the next inning on Joyce's homer to right-center field.

Singles from Jackson and Don Kelly set up Cabrera'a one-out homer to left, but the Rays scored three times in the sixth for a 6-4 edge. Upton singled in a run. Joyce then came home on an Avila throwing error, and a sacrifice fly from Casey Kotchman made it a two-run difference.