In ancient times the city was inhabited by Thamudis and Nabataeans and was known as Hijra. Some of the inscriptions found in the area date back to the 1st millennium BC. However, all the remaining architectural elements are dated to the period of the Thamudis and Nabataean civilizations. __