KANSAS CITY, Mo. — Jacoby Ellsbury drove in the go-ahead run with two outs in the 10th inning, and the New York Yankees hung tough after blowing a four-run lead for a 5-4 victory over the Kansas City Royals on Tuesday night.

Dellin Betances (3-4) tossed two scoreless innings of relief for New York before Ben Heller loaded the bases with one out in the 10th. Chasen Shreve entered the game and calmly struck out Kendrys Morales and got Salvador Perez to fly out, picking up his first career major league save.

Brian McCann and Chase Headley started the Yankees' go-ahead rally with singles off Joakim Soria (4-6), who recovered to strike out Aaron Judge and Tyler Austin. But after Soria walked Brett Gardner to load the bases, Ellsbury lined a single off Soria's leg for his fourth hit of the game.

Judge hit a two-run homer for the Yankees, while Ellsbury finished with two RBIs.

Sign up for the NJ1015.com Newsletter

Get the best of NJ1015.com delivered to your inbox every day.

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