According to this legend, the Earth rests upon the back of a giant elephant, Airavata, who is one of the mounts of the Hindu deity Indra. When Airavata shakes its head, the Earth trembles, causing earthquakes.
This myth serves as a way to explain a natural phenomenon that was otherwise unknown and feared.