A mastectomy is a surgical procedure that involves the removal of one or both breasts. It is commonly performed on patients diagnosed with breast cancer to eliminate cancerous tissue and reduce the risk of cancer spreading. There are different types of mastectomies, including total mastectomy, which removes the entire breast, and partial mastectomy, which removes only a portion of the breast.