The process involves layering a sample onto a pre-formed gradient, usually made of substances like sucrose or cesium chloride. When the sample is subjected to high-speed centrifugation, particles within the sample migrate until they reach a point in the gradient where their density matches that of the surrounding medium. This results in the formation of distinct bands, each containing particles of similar density.