In dynamite , about one part of four is diatomaceous earth , the other three are nitroglycerin . This form of dynamite is similar to cordite , and is much safer than the simple mix of nitroglycerin and diatomaceous earth . Military dynamite achieves greater stability by avoiding nitroglycerin .