Neruda had come to Santiago from Temuco in 1921 to train as a French teacher at the Instituto Pedagógico. On 18 April that year he met a fellow student, Albertina Rosa Azócar. The Fundación Pablo Neruda names her as the woman behind several of the poems.[2]
Some of the poems were printed in magazines before the book existed. The University of Chile's chronology notes that Poem XX first appeared in the student magazine Claridad on 24 November 1923, under the title Tristeza a la orilla de la noche, meaning sadness at the edge of the night.[3]
Neruda spent the summer of 1924 on the coast at Bajo Imperial, in southern Chile, and wrote part of the book there. In his memoirs he said the wharves in the Song of Despair are the old wharves of Carahue and Bajo Imperial.[2]
The first edition came out in June 1924. The National Library's copy is a slim book of forty-five unnumbered leaves.[4] In August 1924, stung by the reviews, Neruda published a letter in the Santiago paper La Nación explaining how he had written the poems. He called it Exégesis y soledad, meaning explanation and solitude.[2]