The Imam, along with others, is being tried on charges of betraying the pledge of allegiance, at the price of which the Imam moves with his family to Cairo, but they fail to complete the journey when his wife falls ill, and the governor suspects the existence of a conspiracy by Imam Shafi'i.
Al-Shafi’i recalls his trial after talking with Harun al-Rashid about science, and al-Shafi’i intervenes to resolve the conflict between the ruler of Egypt and Ibn al-Amir, and praises Egypt with verses.
The Imam's caravan arrives in Egypt and is received at Fustat. The commander of the soldiers complains about their bad condition, but the governor's son does not care. The governor's son tries to embarrass the imam, but the imam underestimates him.
The imam searches for the studies of al-Layth ibn al-Saad with the help of Yusuf, but the imam is shocked by the destruction of al-Layth's research, so he complains to Sayyida Nafisa about the lack of interest in codifying science.
The imam decides to move from Abdul Hakam's house to focus on his studies. The imam intervenes in a discussion about imams and advises the audience not to underestimate some of them, as al-Layth's studies are just like those of other imams.
Ibn al-Wali's suspicion of al-Shafi'i continues, and he sends his men to attack him. Shuklab, the commander of al-Ahwaf, defends him. The imam reaches out to Yahya Ibn Hassan, asking for information about al-Layth.
Under the orders of Ibn al-Wali, the police chief, al-Jarwi, conspires to hide Shaqlab to help the imam, so Suhaib. chief of al-Ahwaf, searches for Shaqlab because his disappearance will lead to conflicts.
The governor's son kills Shaqlab in front of everyone for being a traitor, so the people of Fustat protest by staying in their homes. The news reaches the edges, and Suhaib plans revenge.
Al-Muttalib and Al-Suri plan to take revenge against Ibn Al-Wali for his actions. The imam helps a person who was beaten and robbed. During the chaos, the imam's house is in chaos and his writings are burned.
The imam rescues the book of studies of al-Laith from the fire. Al-Suri decides to agree with Al-Ahwaf to take the right of Shaklab, and the deputy of Ibn Al-Wali tries to reconcile the latter and the imam, but he refuses. Someone accuses Shafi'i of corrupting religion.
A young man criticizes the imam for writing on animal skins, so the imam responds with religious proof, and the opinions of jurists appear. Al-Jarawi tells his men to prepare to disappear in case Al-Suri and Al-Ahwaf cooperate.
Al-Suri and Al-Ahwaf cooperate to get Al-Muttalib out of prison and appoint him as governor of Fustat with the help of the deputy Abu Bishr, while the imam insists on conducting his lessons in these circumstances. Al-Jarawi, the governor's son, escapes and leaves him in the desert.
A curfew is imposed in Fustat, and the imam intervenes to stop the police from storming Hassan's house. Then, he discovers the disappearance of his arrested son, so the people of Fustat search for him, and Al-Suri decides to release him.
The imam decides to send his daughters to learn and to help Hassan and Mrs. Nafisa learn to prevent boredom. Al-Muttalib asks the imam to go to the governor to explain the reasons for the change of ruler in Fustat, but he refuses because he is not convinced of what happened.
Al-Ahwaf seizes the governor's son and sends his father to Suhaib asking for his pardon. The imam enters into a clash with one of his students because of his doubts about monotheism and discusses the Qur'an with him.
Idris embarrasses the imam by asking him about evidence in the Qur'an for a religious issue, so the imam tries to reach an answer, while Suhaib gives the governor's son to his father, and Al-Muttalib fears the alliance of Al-Ahwaf and the governor.
Al-Muttalib orders al-Suri to get rid of al-Jarawi for fear of his alliance with the governor, and al-Suri suspects that he is planning to expel him from Fustat. The imam decides to write down his knowledge so that generations after him can benefit.
Hosn provides the imam with the tools required to write down his knowledge, while Al-Jarawi encourages the governor to enter Fustat, but he refuses because there are more important matters, and he tries to reconcile between Al-Jarawi and Suhaib.
The imam thinks of a way to bring knowledge to people in their homes because of his fear of ignorance, and his students begin to write down his lessons, while Al-Suri mobilizes his army to get rid of the puppy or arrest him.
Al-Jarawi sends a message to Al-Suri through the governor, asking him to negotiate. He confronts Imam Aqil after accusing Amr and Hind unfairly, and he listens to the statements of the witnesses, proving their innocence.
Hind's case raises controversy between supporters and opponents of the imam's rule, and the governor scolds Abu Bishr for his betrayal, so the latter presents him with a gift to show the deception of al-Muttalib to get rid of him. Al-Jarawi arrested al-Suri after a confrontation between them.
Al-Abbasi asks Suhaib to take revenge on Abu Bishr and al-Muttalib, then al-Abbasi dies poisoned with the gift of al-Muttalib. Al-Jarrawi and al-Suri agree to forge a letter from al-Ma'mun appointing al-Sirri as governor of Fustat and al-Jarrawi as commander of the soldiers and police.
The imam discusses with a person women’s inheritance and the need to follow the Sharia, and a girl asks him to attend mosque lessons because it is obligatory for every Muslim to seek knowledge, so the imam thinks about the matter.
The imam agrees to let girls attend his lessons in the mosque and brings his daughters to encourage the others. Al-Jarawi and Al-Suri arrive at Fustat, and the latter declares himself the governor of Fustat. Abu Bishr flees, taking the important notebooks with him.
Al-Suri advises Al-Muttalib to escape, and the latter blames him for his dismissal. Al-Jarawi doubts that Al-Suri plans to betray him. Al-Shafi’i disagrees with the people about the validity of all of Imam Malik’s sayings and decides to write down his differences of opinion with Malik.
The attack on Al-Shafi'i continues because of his views on Malik, so he tries to defend himself, but sedition flares up and his students are prevented from attending his lessons. Al-Suri orders that Jarawi be removed from Fustat and withdraws some of his powers.
Hassan confronts Al-Suri with her suspicions about her husband's death and asks him to investigate the matter. Suhaib agrees to unite with Al-Jarawi against Al-Suri to save Fustat. The people of Fustat are saddened by the departure of Sayyida Nafisa, so she decides to stay.
Al-Jarrawi and Suhaib plan to win over the imam to their side, as well as Al-Suri. The imam refuses Al-Jarrawi's request and fails to meet Al-Suri, thus doubting his loyalty. The imam and his students are prevented from entering the mosque, and two boys accuse him of greed for power.
Al-Suri expels two boys from Fustat after insulting al-Shafi'i, and the room for writing down the imam's flag is burned, causing the people of Fustat to grieve. Al-Suri gets rid of his men, and one of them reveals to Hassan that he killed her husband on his orders, and the imam's wife dies.
The people of Fustat help the imam write down his knowledge, and al-Suri is afraid of al-Jarawi's alliances against him, so the latter attacks Fustat, but the people protect it under the leadership of the imam. Suhaib is killed, and al-Jarawi retreats from the war, and al-Suri remains the governor of Egypt.