The poem "Imitation" was first published in Poe's early collection Tamerlane and Other Poems. The 20-line poem is made up of rhymed couplets where the speaker likens his youth to a dream as his reality becomes more and more difficult. It has been considered potentially autobiographical, written during deepening strains in Poe's relationship with his foster-father John Allan.
After several revisions, this poem evolved into the poem "A Dream Within a Dream".