An earthquake is caused by shifting rocks beneath the earth's surface, releasing stress and causing shaking. During an earthquake, it is important to take shelter right away by hiding under a sturdy table or bed to stay safe from falling debris. You should hide alone under the table if possible and alert others around you to also find shelter. It is important to take cover as soon as you feel shaking start to protect yourself until the earthquake stops.