Earthquake occur due to sudden movements below the earth surface which causes shaking of the earth.
They can occur anywhere and at any time, without warning. The reason for earthquakes may be an underground volcanic activity or shifting of the earth plates.