An uncircumcised penis may smell bad due to the accumulation of sweat and smegma (a white sticky substance) under the foreskin. Sweat and smegma build up under the foreskin can increase the chances of penile infections. Thus, it is necessary to follow good hygiene practices and seek a doctor’s help when necessary.