Here is the most common way to talk about a natural disaster like an earthquake:
There was an earthquake.
But this is another common expression:
We had an earthquake
Here are some more examples with other disasters and weather events:
Do you remember the big hurricane we had back in '75?.
They had a thunderstorm last night.