Mushroom clouds are formed by many sorts of large explosions under earth's gravity, but they are best known for their appearance after nuclear detonations. Without gravity, the explosive's by-product gases would remain spherical. Nuclear weapons are usually detonated above the ground (not upon impact, because some of the energy would be dissipated by the ground motions), to maximize the effect of their spherically expanding fireball and blast wave. Immediately after the detonation, the fireball begins to rise into the air, acting on the same principle as a hot-air balloon.