Penile cancer is a rare type of cancer that occurs on the skin or within the tissues of the penis. It most commonly affects the glans (head) or the foreskin but can also develop in the shaft. The majority of penile cancers are squamous cell carcinomas, which develop from flat skin cells.