This article uses too much jargon, which needs explaining or simplifying. (November 2018)
Dynamite is an explosive invented by Alfred Nobel. Its main explosive component is nitroglycerin. Nitroglycerin is very sensitive to movement. It explodes very easily, when moved. For this reason, diatomaceous earth is used to take away this sensitivity. In dynamite, about one part of four is diatomaceous earth, the other three are nitroglycerin. A little sodium carbonate is added to stabilise the mixture.
Even though the diatomaceous earth takes away some of the dangers of nitroglycerin, there are still problems because the mixture is not stable in damp environments. Dynamite that is damp, or even wet slowly loses its nitroglycerin. The nitroglycerin can build up, and explode unexpectedly.
Today, dynamite is not used very often. It has been replaced by explosives based on ammonium nitrate which use gelignite. These explosives cost less to make, and are easier to handle than dynamite. However, works of fiction still show people using dynamite.