Coca-Cola was originally created by John Pemberton. After earning a medical degree, John Stith Pemberton served in the Confederate Army during the Civil War and it was his life-threatening wound that sparked his quest in creating Coke. Pemberton had become addicted to morphine, and sought a way to combat this addiction.
He called it French Wine Coca, a nerve tonic. When Atlanta passed prohibition legislation in 1886, Pemberton had to redo the formula, basically to make a non-alcoholic version of his tonic. He named the drink Coca-Cola, the drink we all know and love.