Andrology is the medical specialty that focuses on diagnosing and treating diseases and conditions affecting the male reproductive system and male sexual health. This includes conditions such as infertility, erectile dysfunction, testosterone deficiency, and prostate disorders.