The song was originally written in the 1850s to be performed as part of a minstrel show in which white actors dressed up in blackface. Over time, it became the de facto Confederate anthem, and the song would play as Confederate soldiers prepared to enter battle.