BALTIMORE -- Jonathan Schoop and Adam Jones both homered and drove in three runs, and the Baltimore Orioles rallied to beat Cole Hamels and the Texas Rangers 9-7 on Thursday night to complete a four-game sweep.
Mark Trumbo and Chris Davis also went deep for the Orioles, who trailed 5-1 in the fifth inning before coming back to hand Hamels (4-1) his first loss in 10 starts this season.
Baltimore hit 10 home runs in the series and outscored Texas 34-11.
The Orioles' four-game winning streak is their longest since a six-game run in early May, and it puts them within three games of .500 (46-49) for the first time since July 4.
Miguel Castro (2-1) worked the sixth for Baltimore after starter Wade Miley allowed five runs over five innings.
Mike Napoli homered for the Rangers, whose five-game skid matches their season high.
Adrian Beltre had two hits for Texas and has 2,985 for his career, tied with Sam Rice for 31st place on the all-time list.
Hamels brought a 21-inning scoreless streak into the game and extended it to 24 -- third-longest of his career -- before Schoop homered in the fourth.
Jones and Trumbo connected in the fifth, and Hamels was lifted after Baltimore used three straight singles to pull even in the sixth. Jones greeted Jeremy Jeffress with an RBI double, and Schoop capped the uprising with a two-run single for an 8-5 lead.
Davis homered in the seventh, and the Rangers scored two in the ninth off Zach Britton.
Hamels gave up seven runs, along with a season-high nine hits and three home runs.
Beltre singled in a run for Texas in the first inning, and Carlos Gomez made it 2-0 with an RBI double in the fourth.
Napoli hit his 21st home run with two on in the fifth.