Quantization is the bit-saving step inside every lossy codec, and the place where the loss actually happens. After the DCT rewrites a block as wave coefficients, quantization divides each coefficient's strength by a step size and rounds to the nearest whole number, which deletes the small high-frequency waves entirely. The coarser the step - the lower the target bitrate - the more waves round to zero and the more each block collapses toward a single flat tone. This single mechanism is the parent of most spatial artifacts: it flattens neighboring blocks to different tones (blocking), truncates the high frequencies a sharp edge needs (ringing and mosquito noise), discards fine texture (blur), and rounds away the faint variation that held a smooth gradient together (banding). Even content that looked clean at the source can gain banding in the encode because quantization threw away the subtle variation. The coarseness of the step is set by the quantization parameter; quantization is lossy and irreversible, which is precisely why it saves bits.