What caused the earthquake when Solomon was made king?

The people's piping with pipes and rejoicing with great joy.

And all the people came up after him, and the people piped with pipes, and rejoiced with great joy, so that the earth rent with the sound of them. 1 Kings 1:40