Ajaib-Nname is written document from the fifth to twelfth centuries. This study hypothesizes that there is a relationship between Ajaib-nameh and mythological views. To text it, eight texts of this genre were described and analyzed. Using Foucault's theory of genealogy, it was revealed that collective imagination in Ajaib-nameh has a relationship with the quasi-mythological motifs, despite the former's methods and objectives. The evolution of these texts has been explained in three distinct eras, including the geography-based era, the narrative era, and time-based era. The intensity and weakness of imagination in these texts are highlighted in three colors: yellow, orange and dark red.