Gunpowder
Gunpowder was invented as medicine, not as a weapon. Gunpowder is the oldest known chemical explosive. It mixes sulfur, charcoal, and saltpeter together. For centuries it powered firearms, artillery, and rockets. It also blasted rock in mines and quarries. Today newer explosives have mostly replaced it.
Adapted from Wikipedia: https://en.wikipedia.org/wiki/Gunpowder