The New York Yankees used five home runs including two from Nick Swisher to power past the Boston Red Sox 6-4 on Friday night in the Bronx.

Phil Hughes (12-10) yielded four hits over seven innings, but it was his own throwing error that led to Boston's four unearned runs. The error in the third later setup Dustin Pedroia's three-run blast, giving the Sox a 4-3 lead.

Derek Jeter tied the game in the fifth with a solo home run before Jason Nix gave New York the lead back with an RBI single in the sixth, all coming off Boston starter Franklin Morales (3-4).

Swisher's second solo-shot came in the seventh, giving the Yankees an insurance run, and Swisher his fourth homer and eleventh RBI in the last five games.

David Robertson worked around a single in the eighth and Rafael Soriano got 3-up and 3-down in the ninth for his 30th save.

Curtis Granderson (31) and Russell Martin (13) had back-to-back dingers in the second inning helping build an early led for the Bronx Bombers.