A centrifuge is a laboratory device that is used to separate components of a liquid by spinning it at high speeds. The centrifugal force generated causes the denser components to move outwards, while the lighter components move towards the center. This process allows for the isolation and analysis of different parts of a sample.