Farid al-Din Attar's Conference of the Birds is an allegorical Persian poem of roughly four and a half thousand couplets in which the birds of the world, led by the wise hoopoe, set out to find the Simorgh, a mythical king bird said to dwell beyond seven forbidding valleys, valleys of quest, love, insight, detachment, unity, bewilderment and finally poverty and annihilation. Most of the birds abandon the journey along the way, each for a reason the poem uses to illustrate a particular spiritual failing, so that the surviving thirty who finally reach the Simorgh's dwelling discover, through a pun the Persian language makes possible, that si morgh literally means thirty birds, and that they themselves collectively are the king they had been seeking all along.
The poem's structure, a frame narrative of the collective journey interspersed with dozens of shorter embedded stories the hoopoe tells to answer each bird's objection, made it enormously effective as a teaching text, since a reader absorbs Attar's account of the spiritual path as much through the accumulated weight of these smaller stories as through the main allegory itself. Attar frames the whole journey within a Quranic and Persian poetic idiom familiar to his original audience, so that even readers who set aside the allegorical frame can follow much of the poem simply as an anthology of moral tales.