Despite the best efforts of Texas Rangers slugger Adrian Beltre, who seems to be a thorn in the side of the Orioles every time the teams meet, the Orioles emerged from Wednesday’s back-and-forth game with their fourth straight win.

The Orioles’ 6-5 victory over the Rangers earned a series win here in Texas and guaranteed that they would complete their three-city, 10-game road trip with at least a .500 record.

The Orioles (30-27) have scored 27 runs with 50 hits over their last four games. In the first two games here in Texas, they have scored 14 runs with 30 hits, outlasting the Rangers in the later innings both nights. They had 13 hits Wednesday.

"We just keep grinding through the road trip,” Orioles manager Buck Showalter said. “I've said 100 times about trusting the track record and it will happen. It's just too many good players with good skills. It's just kind of frustrating because you want it to be there every night, and as much as you work toward it to be perfect, it's not always that way."

On Wednesday, the first four hitters in the Orioles lineup were 9-for-18, led by leadoff hitter Nick Markakis, who was 2-for-3 with a homer and two walks and drove in the game-winning run.

Markakis’ two-out, opposite-field RBI single in the sixth off left-handed reliever Aaron Poreda broke a 5-5 tie and was the edge in a game that also included four homers and its share of defensive and base-running miscues on a muggy Texas night.

“I’ve liked the offense all season,” Markakis said. “We’ve been doing what we need to do. ... Everybody’s been having good at-bats up here. It seems like when they’ve been throwing it over the plate, we’ve been putting good swings on it. We’ve been able to find the hole and find the gap. We don’t need to change anything.”

Beltre hit two homers and drove in five runs, giving him nine homers and 18 RBIs over his last 10 games against the Orioles. It was his third five-RBI game in that span.