Quarantine is a public health practice used to prevent the spread of infectious diseases by restricting the movement of individuals who may have been exposed to a contagious pathogen. This measure helps to identify and treat individuals who might develop symptoms, thus reducing the risk of transmission to the general population.