To treat penile cancer, doctors may propose a surgical procedure called penectomy, which involves removing the penis. Depending on the extent of the cancer, this operation may involve total or partial removal of the penis, as well as the scrotum and inguinal lymph nodes.