The German Catholic priest Ignaz Franz wrote the original German lyrics in 1771 as a paraphrase of the Te Deum, a Christian hymn in Latin from the 4th century. It became an inherent part of major Christian ceremonial occasions, mainly as a conclusion song.