New York Yankees (2008–2014)
On June 28, 2008, the Yankees called Robertson up from Scranton/Wilkes-Barre. On August 28, the Yankees optioned him back to Scranton/Wilkes-Barre with a 6.31 ERA. He was recalled back to MLB on September 13. He appeared in 25 MLB games in 2008, going 4–0 with a save and a 5.34 ERA, and 51 strikeouts in 34 innings, averaging 13.1 strikeouts per nine innings.
After starting the 2009 regular season in Triple-A, Robertson was recalled to MLB on April 16, to replace Xavier Nady, who had been placed on the 15-day disabled list. The next day he was optioned back to Triple-A to open a roster spot for Juan Miranda. On May 25, he was again recalled to MLB, to replace reliever Brian Bruney. Robertson finished the season 2–1 with a save and a 3.30 ERA and 63 strikeouts in 43+2⁄3 innings.
In the 2009 playoffs, Robertson entered two games in high-pressure situations with multiple runners on base, once in the ALDS and once in the ALCS, and did not allow any runs to score. Robertson received the win in each of those games. The Yankees won the 2009 World Series over the Philadelphia Phillies.
Robertson finished the 2010 season with a 4–5 record, one save, a 3.82 ERA, and 71 strikeouts in 61+1⁄3 innings, averaging 10.4 strikeouts per nine innings.
In Game 6 of the 2010 ALCS against the Texas Rangers, Robertson relieved Phil Hughes in the fifth inning and surrendered a two-run home run to Nelson Cruz which gave the Rangers a 5–1 lead; the Rangers would win the game 6–1 to take the AL pennant.
The Yankees entered the 2011 season with the additions of relief pitchers Pedro Feliciano and Rafael Soriano. Robertson lost out to Joba Chamberlain to be the seventh inning specialist whom manager Joe Girardi wanted to bridge to Soriano and closer Mariano Rivera. Injuries to Feliciano, Soriano, and Chamberlain put Robertson in the eighth inning setup role, where he had 55 strikeouts halfway through the season. Robertson was named to the 2011 American League All-Star roster, replacing David Price.
Robertson finished his breakout 2011 season 4–0 with a save, 34 holds (tied for the AL lead), leading the league in ERA (1.08), along with a 13.5 strikeouts per nine innings ratio (second in the AL, and the highest ratio by a Yankee reliever in franchise history), and an MLB-leading adjusted ERA+ of 410, in 70 games pitched (fifth in the AL). He finished the season with 100 strikeouts (leading all AL relievers) in 66+2⁄3 innings, becoming the first Yankee reliever since Rivera (in 1996) to record 100 strikeouts in a single season. He struck out the 300th batter of his career in 219+2⁄3 career innings on June 24, making him the third-fastest pitcher in major league history to reach that mark after Billy Wagner (194+1⁄3) and Brad Lidge (210+2⁄3). He received one point in the voting for both the AL Cy Young Award (the only non-starter or non-closer to receive a vote) and AL Most Valuable Player (MVP) Award (the only reliever to receive a vote). Robertson also won the This Year in Baseball Setup Man of the Year Award.
In January 2012, the Yankees and Robertson agreed on a one-year non-guaranteed contract to avoid arbitration.
When Rivera went down with a season-ending injury in May 2012, Girardi announced that Robertson and Soriano would share the duties of closing games for the remainder of the season. Robertson himself was placed on the 15-day disabled list however on May 15, after he strained a muscle in his rib cage, 12 days after Rivera's season-ending injury. He returned to action on June 15, but after several appearances became the setup man for Soriano. Robertson finished the 2012 season with a record of 2–7, a 2.67 ERA, two saves, and 30 holds (tied for third in the AL) in 65 games, with 81 strikeouts in 60+2⁄3 innings, averaging 12.0 strikeouts per nine innings.
In 2013, Robertson served as the eighth inning setup reliever behind Rivera. He appeared in 70 games, going 5–1 with three saves and 33 holds (second in the AL) and a 2.04 ERA and 77 strikeouts in 66+1⁄3 innings, averaging 10.4 strikeouts per nine innings.
Rivera retired after the 2013 season. During spring training in 2014, Robertson was named the Yankees' closer. On April 7, Robertson was placed on the 15-day disabled list due to a groin strain.
Robertson had a 4–5 record and a 3.08 ERA in 2014, was successful on 39 (third in the AL) out of 44 save attempts, and struck out 96 batters in 64+1⁄3 innings, averaging 13.4 strikeouts per nine innings. In his lone season as Yankees' closer, Robertson garnered praise as a worthy successor to Rivera. He was paid $5.215 million in 2014. On November 10, Robertson declined the Yankees' $15.3-million qualifying offer for the 2015 season, making him a free agent.