The Baltimore Orioles ended their 19-game losing streak against the New York Yankees, using a strong offensive performance by rookie Ryan Mountcastle to earn a 6-3 victory Friday night for a doubleheader split.

In the opener, Miguel Andujar singled in the tiebreaking run in the ninth inning and Clint Frazier added an RBI single to give New York a 6-5 win. Gary Sanchez homered and Brett Gardner drove in two runs for the Yankees.

Mountcastle hit a two-run homer off 21-year-old Deivi Garcia in the second inning of the nightcap and sparked a four-run fifth inning with an RBI single off Clarke Schmidt, who was making his major league debut.