Chris Davis' RBI double in the fifth inning proved to be the difference, as the Baltimore Orioles beat the Boston Red Sox, 3-2, to avoid a three-game sweep.
Manny Machado knocked in two runs for the Orioles, who moved within 6 1/2 games of the Red Sox for first place in the AL East.
Baltimore starter Chris Tillman (15-4) allowed two runs on six hits while striking out eight over seven innings. The right-hander improved to 8-1 on the road this season.
Shane Victorino hit a solo homer for Boston, which had won four in a row. Stephen Drew had an RBI.
Jon Lester (12-8) got the start for the Red Sox and gave up three runs on five hits while walking three over six innings. The left-hander fell to 15-3 lifetime against the Orioles.