The invention of Coca-Cola is one of the most commercially successful accidents of all time. It was originally intended as patent medicine: a cure to headaches and many ailments including low sexual libido. John Stith Pemberton, an American pharmacist, invented Coca-Cola in 1886. After 50 years of its invention, it became the symbol of America.