Jake Arrieta (3-1) yielded five hits and one run with a season-high 11 strikeouts over seven strong innings.
Giancarlo Stanton homered but left with a wrist injury in the eighth inning for the Marlins, who have dropped five of seven.
Nathan Eovaldi (4-3) was tagged in the loss for five runs on nine hits in six- plus frames.
2014 amfAR Inspiration Gala [PHOTOS]
Julius Randle breaks leg during NBA debut