A craniotomy is a surgical procedure where a portion of the skull is temporarily removed to access the brain. This procedure is often performed to remove brain tumors, alleviate pressure, or address other neurological issues. In the context of cancer, craniotomy is most commonly used to remove primary brain tumors or metastatic brain lesions.