A mastectomy is surgery to remove a breast. It is performed either to treat or to prevent breast cancer.