Settling, but faster
Settling works, but it can be slow. Fine mud can take days to settle. Some mixtures, like blood or milk, hardly settle at all.
A centrifuge speeds things up by spinning the mixture very fast. A centrifuge separates mixtures by density.
When something spins, everything in it is flung outward, the way you feel pushed to the outside on a fast merry-go-round. Denser parts are pushed out more strongly than less dense parts, so they gather at the outer end (the bottom) of the tube. Less dense parts end up closer to the centre (the top).