Earthquakes can be dangerous, so it's important to take precautions to stay safe. When an earthquake hits, seek shelter under a sturdy object like a table and stay away from windows, heavy objects that could fall, and anything electrical. After the shaking stops, check for injuries and damage, but avoid using elevators or going near anything that could fall in case of aftershocks.