A mastectomy is a surgical procedure that involves the removal of one or both breasts, partially or completely. This surgery is typically performed to treat or prevent breast cancer. It can also be an option for individuals with a high risk of developing breast cancer due to genetic factors or family history.