"It does feel like a lot of our losses came like this," said Jeremy Hellickson, who allowed two runs and four hits over 5 1-3 innings.
Baltimore trailed 4-2 before Cruz’s bases-loaded triple against Joel Peralta in the ninth. Tampa Bay tied it at 5 in the bottom half on pinch-hitter Sean Rodriguez’s run-scoring grounder off closer Zach Britton.
"Nelson has been spoiling us at a high level all year as a teammate and a player," Orioles manager Buck Showalter said.
Brad Brach (6-1) worked a scoreless 10th before Andrew Miller got three outs for his first save.
Baltimore increased its margin in the division to 9 1/2 games over the New York Yankees, who lost 2-0 to Kansas City.
Orioles outfielders Adam Jones and Nick Markakis were out of the starting lineup, receiving a break from the artificial turf at Tropicana Field. Shortstop J.J. Hardy missed his second consecutive game due to back spasms.
Jones had a pinch-hit single in the ninth.
Longoria and Loney hit consecutive homers off Bud Norris in the first. Longoria has 39 RBIs in 47 games since the All-Star break.
DeJesus made it 3-0 with his fourth career inside-the park homer during the fourth. Left fielder Alejandro De Aza had the ball knocked out of his glove when center fielder David Lough ran into his teammate’s arm. The ball ended up around the foul line, which allowed DeJesus to easily reach home.
Norris gave four runs and eight hits in six innings.
Cruz’s two-run shot off Hellickson made it 3-2 in the sixth.
The Rays went ahead 4-2 on Kiermaier’s sixth-inning homer.
Orioles: Hardy expects to play in Monday night’s game at Boston.
Rays: CF Desmond Jennings (sore left knee) might miss the rest of the season. The outfielder missed his 10th straight game. … SS Yunel Escobar was out of the lineup due to flulike symptoms.
Cruz had two homers and seven RBIs in 18 previous games against Tampa Bay this season.
Rays: After an off day Monday, RHP Chris Archer (8-8) is scheduled to go against New York RHP Hiroki Kuroda (10-8) on Tuesday night at Yankee Stadium.