Overview
Once in Royal David's City is a Christmas carol originally written as a poem by Cecil Frances Alexander. The carol was first published in 1848 in her hymnbook Hymns for Little Children. A year later, the English organist Henry Gauntlett discovered the poem and set it to music.
History
Hymns for Little Children was a collection of poems aimed to elucidate parts of the Apostles' Creed for use in Sunday schools or in the home; "Once in Royal David's City" told the story of the nativity of Jesus to illuminate "born of the Virgin Mary". Other well-known hymns in the collection included "All Things Bright and Beautiful" (on the subject of "maker of Heaven and Earth") and "There is a green hill far away" (on "Was crucified dead and buried").
Alexander was married to the Anglican clergyman William Alexander, who became Bishop of Derry and Raphoe, and after her death became Archbishop of Armagh. Her most famous poems are commemorated in a memorial window at St Columb's Cathedral, Derry.
Tune and modern usage
Henry John Gauntlett was organist at a number of London churches, including St Olave's in Tooley Street, Southwark from 1827 to 1846, Christ Church Greyfriars and Union Chapel, Islington from 1852 to 1861. He edited many hymnbooks and wrote over a thousand hymn tunes, although his setting of "Once in Royal David's City" to the tune of "Irby" is his most famous.
From Wikipedia (CC BY-SA 4.0).