What a difference two days made for the Orioles. After their rotation looked battered and their closer teetering, they won their second straight game on Wednesday night, and looked forward to watching their phenom, Kevin Gausman, debut on Thursday.

Thanks to Jason Hammel’s 6 2/3 innings, the Orioles were able to beat the New York Yankees 6-3 before 26,725 at Oriole Park.

The Orioles (25-21) started the homestand with a six-game losing streak, but ended it on a happier note.

Beating the Yankees two of three improved the Orioles record to 11-10 against the AL East. They have four games in Toronto beginning Thursday.

“Any time a division rival comes in you want to try to win the series, especially when you’re at home. Like I said, we avoided the snowball effect to some degree and were able to get back on track,” Chris Davis said.

Hammel’s start was the Orioles’ fourth straight with a starter lasting at least six, a first for the team, and his 6 2/3 equaled a season high.

After five straight starts of six innings, Hammel had completed six in three of his previous four. He allowed two runs and six hits, walking two and striking out six.

“That's the Ham we saw last year. That's the guy I expect every time he goes out," Matt Wieters said.

Hammel threw lots of pitches in the first three innings then allowed just two baserunners in the final three.

The Orioles are 8-2 in games he starts, even though he hasn’t pitched up to his standards. Hammel didn’t have much success against New York. Entering the game, he had a 5.82 ERA in 15 appearances.

The Orioles scored three runs in the first off Hiroki Kuroda. With two outs, Nick Markakis hit a home run to right, his fourth. After Adam Jones singled, Davis hit a long two-run home run for a 3-0 lead. That gave Davis the American League lead with 14 home runs.