The woodcutter Masmoh lives with his wife Falha and they seek to have children, while the Sultan thinks about marrying again in order to have children due to his wife’s infertility, and the latter suggests seeing Dr. Arif.
The Sultan resorts to Arif to help him treat his wife's infertility, and threatens him with beheading if he fails. The Sultan is surprised by Arif's control over him with his magic, while Masmoh is bitten by a snake and his wife is worried when he doesn't return home.
The people go out to look for Masmoh, and they return with him in a bad condition. Arif forces the Sultan to appoint him as chief minister.
Arif issues a decision to arrest Masmoh for not paying taxes, so a young man decides to impersonate Masmoh and is imprisoned instead.
Masmoh decides to turn himself in so that the young man can be released from prison, while Dr. Saleh advises him to pay the taxes first. Masmoh meets the Forest Angel, who tells him that there is treasure under the tree.
The Forest Angel gives Masmoh a bag containing a lot of jewels. The Sultana Haya tries to convince the Sultan to get rid of Arif, while Morgana gives Falha herbs to take in order to have children.
After Arif imprisons the Sultan and seizes power, he takes Masmoh's money and jewelry, and puts him in prison with the Sultan.
Haya escapes from the palace, meets Falha, and tells her that Arif has imprisoned the Sultan. Falha sends a message to her husband and the Sultan informing them that she and Haya are pregnant.
Haya stays with Falha in her house. Arif releases Masmoh, and the Sultan escapes, but Arif arrests everyone.
Arif imprisons Masmoh and the Sultan again, so Suleiman tries to free them from him and seeks to kill Arif.
The people of the city gather to fight Arif, and in prison, Masmoh agrees with the Sultan to dig a tunnel to get out.
Masmoh continues digging the tunnel in the prison, and Arif sends his magic ring to his grandmother, the witch Bakhtira, while the people refuse to let Arif take over the sultanate.
Arif uses Bakhtira's ring to monitor Sultan and Masmoh, while he continues to search for Haya and Falha.
Arif seeks to uncover the secret of Masmoh and his wife. Falha and Haya give birth to their two children. Falha’s neighbor believes that Haya’s son has died. Arif catches the Sultan and Masmoh after they come out of the tunnel.
The forest guard rescues the Sultan and Masmoh from Arif's grip, and the latter's maid tries to kill him.
After the maid fails to kill Arif, he puts her in prison. The townspeople unite to revolt against Arif and his injustice. The Sultan and Masmoh disguise themselves as workers to complete their escape plan.
The Queen of the Forest informs Falha and Haya that their sons are connected to each other. Arif proposes to his mute maid to marry her and make her the Sultana of the city. Arif puts the child Ahmed in prison for the latter’s attempt to confront him.
Arif bargains with Ahmed over his release from prison in exchange for knowing the whereabouts of the Sultan and the woodcutter. The Queen of the Forest helps Haya and Falha reach their husbands in the forest.
As Morgana agrees with the mute maid to cooperate with her against Arif, she tells Haya that Arif's strength lies in the hair on his head. Saleh saves the Sultan's deputy from death in the forest.
The maid cuts part of Arif's hair, and the latter imprisons Ahmed's mother. Saleh meets the Sultan and Masmoh, and they agree to team up against Arif.
The Sultan and Masmoh agree to launch a revolution against Arif, who is afraid of the mute maid reading his thoughts, and the latter kills Arif's bodyguard.
The Sultan and Masmoh sneak into the palace with the revolutionaries. After the maid cuts off all of Arif's hair, he kills her and loses his power. As the Sultan releases Ahmed and his mother from prison, he offers Masmoh to work for him in the palace and leave the woodcutting behind.
Falha treats Ahmed's mother in her illness. Masmoh returns to working as a woodcutter. He asks the Queen of the Forest to help him reach his wife, and his son becomes a woodcutter like him and learns martial arts.
The porter is arrested because he resembles Arif, and the Sultan puts him in prison for interrogation.
Masmoh asks the Sultan to impose retaliation on the porter, and Masmoh’s son helps Falha in the matters of woodcutting.
Masmoh returns to his home, and Arif kidnaps the son of Falha and Masmoh, after which the Sultan orders a search for him throughout the land.
The Sultan's son senses Arif's torture of the son of Masmoh, while the latter falls ill out of grief for his son, and the woodcutter's son succeeds in escaping.
Once again, Arif catches Masmoh's son after he escapes. As Masmoh dies, Haya asks Falha to stay in the Sultan's palace until she finds her son.
The porter tries to prove that he is not Arif, and the Sultan's son believes him and decides to help him. The latter communicates with the woodcutter's son and tries to free him from captivity, but Arif's henchman arrests them.
Arif visits the porter in prison and assures him of taking care of his children after he is executed in his place. As the Sultan dies, the subjects choose Haji Saleh as his successor, and Arif is arrested.