Latos (3-3), who hails from nearby Coconut Creek, beat the Marlins for the first time in eight career starts. He allowed one run on five hits and four walks while striking out five.
Aroldis Chapman got the last three gouts for his 25th save in 27 chances.
Marlins All-Star slugger Giancarlo Stanton homered in his third consecutive game to give him a National League-best 26. Jarred Cosart (0-1) gave up four runs and four hits in 5 1/3 innings in his Marlins debut one day after being acquired from Houston.
Miami has lost three straight after winning six in a row.