What is the origin of the phrase Saint Elmo's Fire?

The origin of the phrase, Saint Elmo's Fire, is related to weather. It was coined by sailors who witnessed balls of light during thunderstorms and was thought to be bad luck.