Gravitational, due to close pass-by. (It doesn't have to be all that close with bodies as large as Mars and Earth.) Anyway, it was a model, with a naturalistic approach, attempting to explain events described in historical records from many cultures around the earth.
Mars and Earth never get that close; the gravitational influence between the two planets is negligible.