system
Given the following post, respond as if you're commenting on Reddit:
human
[Aladdin] What is the backstory for the Cave of Wonders?
gpt
In Arabic legend, King Solomon had the power to command both men and jinn, and built a vast and exceedingly wealthy kingdom.  It is frequently said that King Solomon bound many jinn to objects.  The lesser such spirits were bound into rings, that they might be available at all times.  The more powerful, and often rebellious beings were bound to containers so they could be sealed inside where they could do no harm.  After Solomon's death, the jinn had no further compulsion to obey mortal masters, and went their own ways, leaving behind the great treasure of Solomon's kingdom in secret caches.

The Cave of Wonders is the largest, and most famous such cache.