The machine works by feeding harvested crops into a rotating drum fitted with spikes or teeth. As the drum spins at high speed, it beats and rubs the crop, loosening and separating the grains from the straw. The grain then passes through a sieve or blower system, which removes chaff and debris, leaving clean grain.