Penile cancer is primarily associated with multiple risk factors, including human papillomavirus (HPV) infection, particularly types 16 and 18, which can lead to malignant changes in the penile tissues. Other contributing factors may include poor hygiene, smoking, and conditions such as phimosis, where the foreskin cannot be retracted, leading to chronic irritation. Additionally, a history of sexually transmitted infections and a weakened immune system can also increase the risk.