The name is derived from a local legend about a pharaoh's treasure. According to tales, the pharaoh placed an urn filled with treasure on the Al-Khazneh facade's top.
According to historians, the tomb was erected for the Nabatean king Aretas III in the 1st century BC, long after the last native pharaoh died.