A man from ancient Mesopotamia, Hamonri, warps to the future to steal a book from three boys. When the three boys find the book missing, they find an inscription written in Cuneiform, a language spoken in ancient Mesopotamia. The boys are magically warped to ancient Mesopotamia and find the book, only to find it in the hands of another Mesopotamian man. After failing to offer the right payment to get the book back, the three boys attempt to steal the book. King Nebuchadnezzar and his wife, Queen Amytis, arrive and the three boys are accused of stealing the book. After negotiating the Nebuchadnezzar, the boys are unsuccessful in getting their book back.
The three boys, or the Time Warp Trio, need to stop an ancient Mesopotamian man, Hamonri, who had taken control of their book. At the Hanging Gardens of Babylon, Queen Amytis helps the boys by leading them into an irrigation system, one of the technologies developed during the times of ancient Mesopotamia, and she describes how the irrigation system works. The Time Warp Trio helps to open the gates of the irrigation system to flood the building to stop Hamonri.