Shahrazad tells King Shahryar the story of Ali Baba and the forty thieves, the leader of whom is Shoman. As Ali Baba sells earrings, his brother Cassim plans to be a Shahbandar.