Up to 20,000 Nabateans may have once lived here , but earthquakes in the fourth and eighth centuries destroyed most of the city ; what remain today are only the sturdiest , most monumental tombs and temples .
Some people tried to rebuild the city after the earthquake in the fourth century , but after the second one in the eighth century , they all left .