Maya allowed three hits in the start, while Ernesto Mejia doubled twice for Atlanta.
Gattis' homer was one of five hits allowed by Miami starter Henderson Alvarez in 3 2/3 innings.
Rob Brantly homered with two outs in the ninth for the Marlins.
2014 amfAR Inspiration Gala [PHOTOS]
Julius Randle breaks leg during NBA debut