BALTIMORE (AP) -- Henry Urrutia broke a ninth-inning tie with his first major league home run, and the Baltimore Orioles ended a nine-game losing streak against the New York Mets with a 5-4 victory Wednesday night.

Henry Urrutia of the Baltimore Orioles is doused with water by teammates after hitting the game winning home run at Camden Yards in Baltimore. (Greg Fiume, Getty Images)

Jonathan Schoop and Adam Jones also homered for the Orioles, who hadn't defeated the Mets since June 18, 2009.

Baltimore rallied from 3-1 and 4-3 deficits before Urrutia led off the ninth with a drive into the seats in left field off Carlos Torres (4-5). That gave the Orioles a split of the two-game series and their fifth win in six games.

Zach Britton (4-0) worked the ninth for Baltimore.

Daniel Murphy and Wilmer Flores both homered and had two RBIs for the first-place Mets, who have lost four of five.

(Copyright 2015 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.)