O Holy Night was written in 1847 by a Frenchman named Placide Cappeau. He was born and raised a Catholic, but in the years leading up to writing this hymn, he had somewhat drifted away from his religious upbringing.
He was reportedly injured by a gunshot wound to his hand when he was a young boy and had to have it amputated. He obtained a law degree however, he never practiced law, instead becoming a wine merchant. He spent his extra time writing verses.
He was also elected mayor of his local community in southern France. A local parish priest had been working with him to return him to serving the Lord. It is reported that the priest was about to give up on him when he had begun publicly espousing socialism.
In a last ditch effort to bring him back into the church, the priest asked him to write a Christmas poem for Midnight Mass on Christmas Eve. Cappeau agreed and wrote the bulk of the poem on December 3rd of that year on a carriage ride from his small town in southern France to Paris. The basis for the poem began to come to him as he was reading from Luke two and imagining what it would have been like if he had been there on the night that Christ was born. The poem was later set to music by popular French composer Adolphe Adam. It was well received in the years to come around France and the world over. The English words of O Holy Night were written by an American named John Sullivan Dwight who introduced the song to America.
On Christmas Eve, 1906, O Holy Night became the first song ever broadcast over the radio when Canadian inventor Reginald Fassenden played it when experimenting with a microphone and the telegraph. It was a Christmas special in which he was broadcasting to US sailors on their ships across the Atlantic from Massachusetts. O Holy Night was played and a few passages from the Bible were read during the broadcast.