"When the Saints Go Marching In", often referred to as "The Saints", is an American gospel hymn that has taken on certain aspects of folk music. The precise origins of the song are not known. Though it originated as a spiritual, today people are more likely to hear it played by a jazz band. The song is sometimes confused with a similarly titled composition "When the Saints are Marching In" from 1896 by Katharine Purvis (lyrics) and James Milton Black (music).
A traditional use of the song is as a funeral march. In the funeral music tradition of New Orleans, Louisiana, often called the "jazz funeral", while accompanying the coffin to the cemetery, a band would play the tune as a dirge. On the way back from the interment, it would switch to the familiar upbeat "hot" or "Dixieland" style.