It lies 400 km northwest of Medina, about 20 km north of Al-'Ula and 500 km southeast of Petra. Hegra was the southern outpost of the Nabataean kingdom and its second city after Petra, and in 2008 UNESCO inscribed it on the World Heritage List for these tombs.
The oasis was settled before the Nabataeans: Lihyanite inscriptions and rock art on Jabal Athleb nearby date to the 3rd–2nd century BC. Under King Aretas IV, in the 1st century AD, Hegra grew into a true city and a major staging post on the north–south caravan route that carried incense, myrrh and spices. Its people dug deep wells to farm dates, wheat, barley, olives, pomegranates and figs. Rome annexed the kingdom in 106 AD, stationed troops of the Legio III Cyrenaica here and built a fort; a Latin inscription of 175–177 AD calls the town civitas Hegrenorum. As trade shifted to the Red Sea, the city slowly lost its role.
The tombs, spread over 13.4 km in four necropolises, face towards the city so that elite families would be seen and remembered. Eighty-six of them have carved façades, ranging from modest fronts to monuments more than twenty metres high; the largest is known as al-Farid. The decoration blends motifs borrowed from Assyria, Phoenicia, Egypt and Hellenistic Alexandria with local style, and the size and ornament reflect the wealth of the dead. Unlike most tombs at Petra, many here carry a Nabataean inscription above the door, a kind of legal deed naming the owners, who included women as well as men, setting out burial rights and prohibitions and dating the tomb by the reign of a Nabataean king. Inside, the chambers are bare and plain, with graves cut into walls and floors for successive generations of a family.
Beyond the monumental tombs, thousands of simple trench graves are cut into the tops of the crags, and stone tumuli stand on the plateaus west of the city. To the northeast, the sacred area of Jabal Ithlib, probably dedicated to the god Dushara, is reached through a narrow passage 40 metres long between high rocks, recalling the Siq at Petra; it leads to the hall known as the Diwan, and small inscribed sanctuaries are cut into the rock around it. The mudbrick houses of the residential quarter, in the middle of the plain, have left few traces, but some 130 wells, 4–7 metres across, survive in the western and northwestern part of the site.
In the Quran, al-Hijr is the land of the Thamud, who carved homes from the mountains, rejected the prophet Salih and were destroyed by an earthquake; the name Mada'in Salih, 'the cities of Salih', comes from this story and was in use by Ottoman times. Later the site became a stop on the Hajj road: between 1744 and 1757 the Ottoman governor of Damascus had a fort with a well-fed cistern built here, where pilgrims could buy dates, lemons and oranges. The English traveller Charles Montagu Doughty reached Hegra with the Hajj caravan in 1876 and lived in the fort for two months, and the Hejaz Railway, begun in 1901, had a station just north of the site.




