While the words were written by Julia Ward Howe, the tune itself is much older and has been used for various songs over centuries. The exact origin of the melody is unclear, but it likely originated in the 18th century and was popularized through various uses, including abolitionist songs.