With Rodriguez benched for the first time this season with what he and the team called "fatigue," the Yankees regrouped after two losses at home to the woeful Washington Nationals. Derek Jeter had two hits after being out of the starting lineup the last two games with a sore left ankle, and Melky Cabrera homered for New York.
Cody Ross' home run off Pettitte in the third inning accounted for the Marlins' lone run.
Pettitte (7-3) pitched seven innings, struck out seven and walked none. Brian Bruney and Brett Tomko pitched two hitless innings in relief.
Sean West (2-2) took the loss.

The Yankees made their rare appearance in Miami with style, helping the attendance-challenged Marlins bring in 35,027 fans, their second best of the season.
The stadium's orange seats were hardly recognizable as New York transplants came in droves, wearing their Yankees caps and pinstripes and sounding off with roars that are rarely heard for baseball games at the Marlins' home.
"Let's Go Yankees!" they cheered, easily drowning out Florida fans.
The spacious grounds also were quite a change for New York. There has been 119 home runs already this season at the new Yankee Stadium, a much harder feat in Miami.
But the Yankees looked right at home.
Getting a rare at-bat because of interleague play, Pettitte's RBI double in the second highlighted a three-run inning for the Yankees. Cabrera homered in the fourth to give New York a 5-0 lead, and every Yankees starter had a hit by the fifth inning.