As early as the 17th century the Spanish used quinine from the bark of Cinchona trees to treat malaria after being shown the remedy from the Indigenous peoples of Peru, Bolivia, and Ecuador.
In early 19th century India and other tropical posts of the British Empire, medicinal quinine was recommended to British officials and soldiers to prevent malaria, where it was mixed with soda and sugar to mask its bitter taste, creating tonic water.