The medical specialty that deals with the male reproductive system, including the penis, testes, prostate, and other related structures, is called urology. A doctor who specializes in urology is known as a urologist or a urologic surgeon.

Urologists are trained to diagnose, treat, and manage various conditions and diseases related to the male reproductive system, such as erectile dysfunction, prostate cancer, testicular cancer, infertility, urinary tract infections, and other related issues. They may also perform surgical procedures to treat these conditions, such as vasectomies or prostatectomies.
Urologists are trained in both medical and surgical management of male reproductive health, as well as the urinary system, which includes the kidneys, bladder, and urethra. They are experts in performing diagnostic procedures such as ultrasounds, CT scans, MRI scans, and biopsies to identify and diagnose conditions affecting the male reproductive system.
In addition to urologists, there are also other medical professionals who specialize in male reproductive health, such as andrologists and reproductive endocrinologists. Andrologists are doctors who specialize in male infertility and sexual dysfunction, while reproductive endocrinologists specialize in fertility and hormonal issues in both men and women.
It is important to note that seeking medical attention for male reproductive health concerns can be a sensitive and personal matter, and it is important to find a doctor with whom you feel comfortable discussing these issues. It is recommended to find a doctor who is knowledgeable, experienced, and compassionate in treating male reproductive health concerns, and who can provide personalized care and treatment plans based on your individual needs and concerns.
In conclusion, a doctor who specializes in male reproductive health, including the penis, testes, prostate, and related structures, is called a urologist. They are trained to diagnose, treat, and manage various conditions affecting the male reproductive system, and may perform surgical procedures to treat these conditions. It is important to find a doctor who is knowledgeable and compassionate in treating male reproductive health concerns, and who can provide personalized care based on your individual needs and concerns.