A skin biopsy is performed to diagnose or rule out conditions such as skin infections, inflammatory skin disorders, and most importantly, skin cancer. It is particularly essential when a suspicious lesion, mole, or growth is observed. The biopsy enables doctors to examine cells at a microscopic level, ensuring accurate diagnosis and appropriate treatment.