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.
Notable deaths of 2014 [PHOTOS]
Michael Sam cut from the Dallas Cowboys