Earthquakes can happen anywhere, at any time. The Earth's outer crust is made of tectonic plates, floating on the planet's upper mantle. The edges of these plates, called fault lines, are where most earthquakes occur. When the plates butt up against each other and get stuck, that causes pressure to build up. Once the plates move again, that's when an earthquake happens.