D-backs starter Robbie Ray (2-5) allowed five runs on eight hits in 4 1/3 innings. The left-hander couldn't complete six innings for the eighth time in his last nine starts as he continues to struggle to work deep into games. Arizona trimmed Tampa Bay's lead to two runs in the seventh, but pinch-hitter Brandon Drury struck out with the bases loaded to end the inning.
The Rays won their fourth game in a row after they had lost eight of their previous nine. The D-backs lost for the 10th time in 14 games.
MOMENTS THAT MATTERED
Rays' rally: Mikie Mahtook's double to start the fifth inning marked the beginning of the end for Ray and the D-backs.