Al-Khazneh at night
Al Khazneh was originally built as a mausoleum and crypt at the beginning of the 1st Century AD during the reign of Aretas IV Philopatris. Its Arabic name Treasury derives from one legend that bandits or pirates hid their loot in a stone urn high on the second level. Significant damage from bullets can be seen on the urn. Local lore attributes this to Bedouins, who are said to have shot at the urn in hopes of breaking it open and spilling out the "treasure"—but the decorative urn is in fact solid sandstone. Another legend is that it functioned as a treasury of the Egyptian Pharaoh at the time of Moses (Khaznet Far'oun).
Petra, Al-Khazneh 2
Many of the building's architectural details have eroded away during the two thousand years since it was carved and sculpted from the cliff. The sculptures are thought to be those of various mythological figures associated with the afterlife. On top are figures of four eagles that would carry away the souls. The figures on the upper level are dancing Amazons with double-axes. The entrance is flanked by statues of the twins Castor and Pollux who lived partly on Olympus and partly in the underworld.
Al Khazneh
Ancient Megastructures: Petra, a television series from National Geographic Channel, is dedicated to the Khazneh, explaining how it was created through human resourcefulness and courageous endeavour.
The first glimpse of Petra's Treasury (Al Khazneh) upon exiting the Siq.
The Treasury is also depicted in Hergé's The Red Sea Sharks, one of the Adventures of Tintin, Sinbad and the Eye of the Tiger, Sky 1 travel series An Idiot Abroad, and the history series The Naked Archeologist.
(source)