Dr. Yehia, a psychotherapist at Al Abbasia hospital, works in the department of the criminally insane. He finds that one of his patients is his old friend Sherif Al-Kordy. When he tries to help him, he gets himself in serious trouble.
Koky, the little boy whose teacher tells him the story of Ali Baba and the Forty Thieves, does not believe that Ali Baba is a hero and wants to try him for his crimes. His parents perform a trial for Ali Baba to calm him down, but something unexpected happens.