Frozen sections are commonly used in situations where a quick diagnosis is crucial. For example, during cancer surgery, a frozen section can help determine if all malignant tissue has been removed. It is also used to identify the presence of infectious agents, such as bacteria or fungi, and to confirm the nature of a lesion or tumor.