Buehrle (12-11) limited Los Angeles to a single run on six hits over 5 2/3 innings, issuing three walks while striking out four.
Then the Marlins bullpen took over, with Ryan Webb, Mike Dunn, Chad Gaudin and Heath Bell combining to yield one run over two innings.
Steve Cishek recorded the final five outs for his 11th save as Miami avoided a three-game sweep.
Los Angeles starter Aaron Harang (9-8) took the loss, allowing three runs on six hits over 5 1/3 innings.
Newly acquired Adrian Gonzalez supplied a run-scoring single for the second-place Dodgers, who entered the game trailing National League West-leading San Francisco by two games.