The Mets could not hold an early 3-0 lead, but tied it 4-all in the top of the ninth on Ike Davis' RBI double off Rafael Soriano.
In the seventh, Martin hit a two-run homer off the top of the right-field wall to pull the Yankees to 3-2 after third baseman David Wright's throwing error extended the inning.
Mark Teixeira tied it at 3 with an RBI single in the eighth and Alex Rodriguez gave the Yankees the lead with a bloop single.
Martin hit a full-count pitch from Jon Rauch (3-6) to left field.
Boone Logan (1-0) got two outs with runners on first and third in relief of Soriano, who had his first blown save in 10 chances. Soriano is filling in for injured closer Mariano Rivera.
NATIONALS 4, RED SOX 3
BOSTON (AP) — Roger Bernadina doubled with two outs in the ninth inning, driving in Bryce Harper for the go-ahead run, and Washington held off slumping Boston to finish a three-game sweep.
Danny Espinosa doubled twice and drove in two runs for the Nationals, a franchise that had never won at Fenway Park coming into the series.
Harper was out of the starting lineup because of tightness in his back. He pinch-hit for Tyler Moore with one out in the ninth and drew a walk from Alfredo Aceves (0-4).
Tom Gorzelanny (2-1) pitched a scoreless eighth and Tyler Clippard earned his third save of the series, striking out Dustin Pedroia to end it. Red Sox manager Bobby Valentine stormed out of the dugout during Pedroia's at-bat to argue a strike and was quickly ejected by plate umpire Alan Porter.
RAYS 4, MARLINS 2
MIAMI (AP) — James Shields allowed one run in 6 1-3 innings to win for the first time in five starts and Tampa Bay capped a three-game sweep by beating Miami.
The Rays outscored their intrastate rivals 22-7 and have won seven in a row against the Marlins. Miami fell to 0-6 on its homestand and has been outscored 43-10.
Matt Joyce hit his 11th homer and Elliot Johnson hit his third to help the Rays (35-25) improve the best record in the American League. Shields (7-4), who had lost his past three decisions, allowed four hits and struck out five.
Fernando Rodney earned his 18th save in 19 chances with a scoreless ninth and lowered his ERA to 0.94.
Anibal Sanchez (3-5), plagued again by lousy run support, pitched six innings and allowed four runs, including both homers. He lost for the fifth time in his past six outings.
BLUE JAYS 12, BRAVES 4
ATLANTA (AP) — Brett Lawrie and Colby Rasmus each homered and drove in three runs as Toronto rallied from an early four-run deficit to defeat Atlanta.
The Braves' six-game winning streak ended even though they led 4-0 after three innings. Blue Jays left-hander Ricky Romero lasted only four innings.
Toronto took the lead with six runs in the fifth off 21-year-old Julio Teheran, who was called up for his first start of the season, and 37-year-old Livan Hernandez (1-1).
Lawrie hit a two-run homer and Rasmus added a homer off Hernandez as Toronto added three runs in the sixth.
Carlos Villanueva (1-0) pitched two scoreless innings.
The Blue Jays set a season high with 18 hits as they ended a three-game losing streak.
ORIOLES 5, PHILLIES 4, 10 INNINGS
BALTIMORE (AP) — Matt Wieters doubled home the winning run in the bottom of the 10th inning and Baltimore beat Philadelphia to extend its run of successive extra-inning victories to nine.
Steve Tolleson hit a three-run homer for the Orioles, who bounced back from a 4-1 deficit to keep Phillies starter Cliff Lee winless this season.
Baltimore took two of three from the Phillies, including a 12-inning win on Saturday. The nine straight extra-inning victories is an Orioles record, breaking the mark of eight set twice previously.
Adam Jones led off the 10th against Joe Savery (0-1) by reaching on a fielding error by third baseman Ty Wigginton. Wieters then launched a drive to right that hit the scoreboard, inches over the outstretched glove of Hunter Pence. The bouncing ball eluded Pence long enough for Jones to score.
Darren O'Day (4-0) worked the 10th for the Orioles.
It was the eighth loss in nine games for the last-place Phillies.
PIRATES 3, ROYALS 2
PITTSBURGH (AP) — Andrew McCutchen homered and drove in three runs, A.J. Burnett won his fifth consecutive start and Pittsburgh finished its first sweep of an AL team in more than a decade by beating Kansas City.
McCutchen hit an RBI double in the first inning and a two-run homer in the third, giving Burnett (6-2) and three relievers enough support for the Pirates to win their fourth in a row. This was the 50th interleague series they had played since taking three in a row from Cleveland in June 2001.
Since May 25, the Pirates have the best record in the majors at 12-3.
The Royals have lost four in a row and six of eight.
Burnett took a no-hitter into the sixth and was charged with two runs in 7 1-3 innings. Pittsburgh has won his past seven starts and he is 4-0 with a 1.27 ERA at home this season.
With closer Joel Hanrahan getting a rest, Jason Grilli worked out of trouble the ninth for his fourth career save and first of the season.
Bruce Chen (5-6) allowed three runs in five innings, falling to 0-4 at PNC Park. The Royals have lost 24 of their past 33 games against NL teams.
CUBS 8, TWINS 2
MINNEAPOLIS (AP) — Ryan Dempster pitched eight shutout innings to lead Chicago past Minnesota.
After an 18-start winless streak dating to last Aug. 11, Dempster (2-3) won his second game this week, another gem for a Cubs team that had the worst record in the majors. He scattered four singles and struck out six, including Joe Mauer three times, to help Chicago win for the fifth time in 25 games.
Dempster lowered his ERA to 2.31, and the Twins lost for the third time in 12 games.
David DeJesus drove in three runs, and Reed Johnson and Starlin Castro scored three times each.
Francisco Liriano (1-7) gave up four hits, four runs and three walks in 5 1-3 innings.
RANGERS 5, GIANTS 0
SAN FRANCISCO (AP) — Alexi Ogando pitched three perfect innings before leaving with a strained groin after a bunt single, combining with three relievers combined on a three-hitter and leading the Texas Rangers past San Francisco.
The AL West-leading Rangers tagged Tim Lincecum (2-7). The two-time NL Cy Young winner is 0-5 in his last eight starts and has a 6.00 ERA this season.
Robbie Ross (6-0) allowed only a double to pinch-hitter Aubrey Huff in the sixth over four innings. Mike Adams gave up two hits in a scoreless eighth and Joe Nathan tossed a hitless ninth.
Josh Hamilton and Ian Kinsler each drove in two runs to chase Lincecum.
ANGELS 10, ROCKIES 8
DENVER (AP) — Mark Trumbo hit a pair of three-run homers to set a career high with six RBIs and the Los Angeles Angels beat slumping Colorado for their ninth straight victory on the road.
Torii Hunter added a two-run homer and scored three times to help Los Angeles complete a three-game sweep.
Tyler Colvin and Carlos Gonzalez homered for the Rockies, who fell to 0-6 in interleague play — with all the games at home — and lost their fifth straight overall. Colorado manager Jim Tracy was tossed in the ninth by plate umpire Greg Gibson, his first ejection of the season.
Ervin Santana (3-7) weaved through 5 2-3 innings. Scott Downs earned his sixth save. Christian Friedrich (4-2) took the loss.
INDIANS 4, CARDINALS 1
ST. LOUIS (AP) — Jason Kipnis hit a tiebreaking three-run homer off closer Jason Motte in the ninth inning and the Cleveland Indians beat St. Louis.
Carlos Beltran homered for the second straight day to increase his NL-leading total to 18, and Joe Kelly allowed one run in five-plus innings in his major league debut for the Cardinals.
St. Louis is the only major league team that has not won a series over the Indians, who are 14-6 overall against the Cardinals.
Vinnie Pestano (3-0) walked three straight batters with one out in the eighth but recovered to strike out No. 3 hitter Yadier Molina and cleanup man Allen Craig. Chris Perez, who once competed with Motte for the St. Louis closer spot, finished for his 20th save in 21 chances. He has saved 20 in a row since opening day.
Kipnis hit his 10th homer on a 2-2 pitch from Motte (3-3).
ASTROS 11, WHITE SOX 9
CHICAGO (AP) — Justin Maxwell, Jose Altuve, J.D. Martinez and Brett Wallace all homered to lead the Houston Astros past the Chicago White Sox.
Maxwell's two-run shot was estimated at 461 feet, curling just inside the left-field foul pole into the second deck. Altuve drove in three runs and stole home on the back end of a double steal.
Adam Dunn hit his 20th homer of the season and Paul Konerko added his 12th for the White Sox.
Lucas Harrell (6-4) tied a career high by going 7 1-3 innings, winning his first start against his former team. Brett Myers got the last two outs for his 15th save.
Phil Humber (2-4) is 1-4 with a 7.50 ERA since throwing a perfect game on April 21 at Seattle.
DIAMONDBACKS 4, ATHLETICS 3
PHOENIX (AP) — Joe Saunders held Oakland to one earned run over six innings and the Arizona Diamondbacks extended their winning streak to a season-long five games.
Chris Young singled twice and scored both times as Arizona completed a three-game interleague sweep of the A's. The Diamondbacks have won seven of eight to climb to .500 for the first time since they were 14-14 on May 5.
Saunders (4-4) scattered seven hits, struck out five and walked two. Travis Blackley (0-2) took the loss.
DODGERS 8, MARINERS 2
SEATTLE (AP) — Andre Ethier awakened from a recent slump with his fourth career grand slam to cap a six-run second inning and Chad Billingsley pitched the Los Angeles Dodgers past Seattle.
Shut down by six pitchers in a Mariners' no-hitter Friday night, the Dodgers rebounded to win the final two games of the interleague series.
Billingsley (4-4) struck out eight in seven innings.
Ethier was in a 1-for-27 rut when he hit his slam in the second against Blake Beavan (3-6).
TIGERS 7, REDS 6
CINCINNATI (AP) — Austin Jackson homered and hit a two-run double off Aroldis Chapman during a four-run eighth inning to rally Detroit past Cincinnati.
Virtually unhittable all season, Chapman (4-2) entered with two on in the eighth and the Reds leading 6-3. He gave up a single to pinch-hitter Brennan Boesch that loaded the bases and hit Matt Young with a pitch, forcing in a run.
Jackson's double tied it and Young scored the go-ahead run on Chapman's wild pitch, helping the Tigers take two of three in the interleague series.
Cincinnati wasted Todd Frazier's homer and career-high four RBIs. The Reds dropped into a tie with Pittsburgh for first place in the NL Central with their third loss in four games.
Brayan Villareal (3-1) pitched two innings and Jose Valverde earned his 12th save in 15 chances.
Zack Cozart and Devin Mesoraco also homered for the Reds.
BREWERS 6, PADRES 5
MILWAUKEE (AP) — Ryan Braun homered and Yovani Gallardo pitched seven innings to help the Milwaukee Brewers beat San Diego.
Gallardo (5-5) gave up five hits and one earned run in seven innings. Anthony Bass (2-6) gave up four runs, five hits and three walks in 5 2-3 innings.