An organization tries to control the minds of Egyptian youth and falsify the facts of ancient Egyptian history. A man from the organization hires men to find Yahya and accompany him on a journey to ancient times. They aim to distort the truth about the role of King Psamtik I in liberating the country from foreign occupation and unifying it.
Yahya rejects an offer to film videos about Egyptian civilization from an unknown satellite channel. Yahya's mother falls ill, and the doctor tells her that the medicine is very expensive. Yahya decides to travel to the past to film some footage and accepts the offer to save the necessary money.
Yahya discovers that the owner of the channel caused his mother's illness, and he asks him to travel to ancient times to falsify some facts in exchange for his help in curing his mother. Yahya goes to the ancient era, but to find a solution to the problem. Nonya appears to him to help him on his journey.
Yahya, Fodouly, Knouz, and Professor Gamila go to the time of King Psamtik I. Yahya plans to deceive Fodouly and help his mother obtain the medicine without falsifying history.
Sino tells Yahya the prophecy of King Psamtik I and how he united the country. Knouz tells Sino what happened to her mother. Essam and Mazen try to trick Hassan into taking Umm Yahya's medication injection, but he exposes them.
Yahya advises King Psamtik I to send a message to the Kushite ruler Mentumhat to achieve peace between the two sides. Psamtik I imprisons Fodouly and Etman for lying to him, so Yahya bargains with them by letting them out of prison in exchange for the medicine he needs for his mother.
Yahya brings medicine to his mother and her condition improves. He returns to the ancient era and finds Fodouly burying a fake painting that falsifies the history of Egyptian civilization. King Psamtik I's soldiers find them, consider them traitors, and decide to execute them.
King Psamtik I stops the execution of Yahya and those with him. Yahya explains to him where they came from and what will happen in his rule and the country in the future, so the king pardons them. The invisible man tells Fodouly to appoint Professor Gamila with him to do the job.
Professor Gamila begins working on her plan to build a machine to go back in time without needing Yahya. King Ramesses II asks Nonya to help Yahya confront organizations that want to falsify Egyptian identity.
The secret organization delivers the time-travel machine to Gamila and Fodouly. Yahya asks Fahmy Speed to hack Fodouly's phone to find out what is happening in the secret organization, and they discover that Professor Gamila works with the organization.
The organization asks Fodouly and Gamila to return to the battle of Ain Galut to change the map of the city of Fustat and create a fake document about houses demolished by other civilizations. Yahya goes back to the past to prevent Fodouly and Gamila from tampering with history, and Nonya comes to his aid.
Nonya tells Yahya and Knouz the story of Sultan Al-Mansur’s accession to the rule of Egypt, starting with Al-Salih Ayyub’s war against the Crusaders and ending with Qutuz’s isolation of Al-Mansur when the Tatars arrived near Egypt and was killed by Tatar messengers.
Gamila agrees with the Tatar commander to help him defeat Qutuz's army in exchange for becoming the ruler of Fustat. Yahya advises Qutuz to write to the Bahri Mamluks to reassure them. The Tatar leader asks Fodouly to operate the time machine so they can reach the present time.
Yahya advises Qutuz to make peace with the Crusaders to avoid their attack when passing through Acre and to facilitate access to the Tatar army. Gamila takes command of the Tatar army. Nonya tells Yahya this, so he goes to the Tatar camp to thwart her plans.
Qutuz attacks the Tatar army in Palestine. Kitbuqa returns to the ancient era and tries to avoid loss, as in the history books he read in the current era. Qutuz sets a trap for the Tatar army and defeats them.
Gamila takes advantage of Fahmy and Yahya's fight and asks Fahmy to join her. The Invisible Man asks Fodouly to supervise the film scheduled to be filmed to falsify the history of Egypt.
Gamila trains Fahmy for his next mission. Ramesses II summons Yahya to understand his new mission against the secret organization and the conspiracies that aim to distort the history of Queen Cleopatra.
Gamila and Fahmy return to ancient times to complete their mission. Fahmi faces Yahya. Gamila tells Queen Cleopatra of the death of Julius Caesar so that she can flee Egypt so that the Romans will not kill her.
Sarhan and Fahmy trick Yahya into capturing him so they can carry out their mission without his resistance. Gamila wrote on the walls of Egypt that Queen Cleopatra's mother was from Abyssinia. The men tell Cleopatra what Gamila and the gang are doing in the cave, so she orders them to be brought
Gamila deceives Cleopatra and tells her that Yahya falsified the truth about her origins. Yahya confronts Fahmy again, and during the confrontation, Yahya discovers that Fahmy is wearing a necklace that affects his feelings. Yahya and Fahmy reconcile after he takes off the necklace.
Yahya asks Sino to return the time machine to the current era so that they can control Gamila and the organization. Nonya tells Yahya and Fahmy about the conflicts in the Roman state, the deposition of Julius Caesar, and Antony's marriage to Queen Cleopatra.
The organization sends a clone of Yahya to his home to obtain the time machine that Sino arrived with. Yahya warns Cleopatra against Gamila forging her identity. Yahya's lookalike drugs Sino in order to kidnap him.
Cleopatra orders that Gamila and Hassan be imprisoned for forging her origins. Yahya asks Cleopatra to take Gamila and Hassan with him to the current era so that they do not pose a threat to the ancient era. Yahya returns to the present era, and Fodouly sends him a video of Sino's kidnapping.
Gamila bargains with Yahya by bringing an artifact from the time of Alexander the Great to release Sino. Yahya agrees and tricks her by giving her a fake sword. Gamila discovers the trick and continues her journey in the time of Alexander the Great on her own.
Gamila asks Etman to disguise himself as one of Alexander the Great's servants to steal his sword. Etman is arrested and Alexander orders that he and Gamila be imprisoned. An unknown person takes them out of prison. Yahya and Knouz's father fails to save Sino from the organization.
It turns out that the priest Meryptah released Gamila and Etman from prison, and is cooperating with them to get rid of Yahya. Yahya encourages Alexander to build Alexandria. Meryptah's mercenaries and Alexander's men clash at the seashore. Yahya returns to the present time.
Gamila decides to kill Sino as revenge against Yahya. Fodouly withdraws from working with the organization, rescues Sino, and takes him to Yahya's house. The organization asks Gamila to return to the ancient era to intervene in the water levels of the Nile River.
Gamila and the robot help Etman and Hassan in their plan to reduce the water level of the Nile to dry out the land. They try to make the mission successful at different times. Yahya wakes up from his coma, and Professor Essam shows him a plan to stop Gamila and her assistants.
Yahya and Sino move to the era of decay, and Essam, Knouz, and Nonia move to the era of Al-Mustansir Billah to thwart Gamila’s plan to reduce the water level. Queen Ahhotep arrests Gamila. Yahya moves to the era of Al-Mustansir Billah, but after the famine hits Egypt.
Yahya explains to Minister Badr Al-Jamali the solution to the famine in Egypt. Yahya returns to the present time, hands over the time machine to the Egyptian Space Agency, and works to create a museum of the events he went through so that the world can benefit from his experiences.