Author Hans Christian Andersen became an adherent of Scandinavism after a visit to Sweden in 1837, and committed himself to writing a poem that would convey the relatedness of Swedes, Danes and Norwegians. It was in July 1839, during a visit to the island of Funen in Denmark, that Andersen first wrote the text of his poem, "Jeg er en Skandinav" ("I am a Scandinavian"). Andersen composed the poem to capture "the beauty of the Nordic spirit, the way the three sister nations have gradually grown together", as part of a Scandinavian national anthem. Composer Otto Lindblad set the poem to music, and the composition was published in January 1840. Its popularity peaked in 1845, after which it was seldom sung.