Male yeast infections are not even remotely as common as female yeast infections are, but they can and do occur. A yeast infection, candidiasis, is caused by a fungus that likes to grow in warm, dark, moist places. That can include male genitals. If you have unprotected sex with someone who has a genital yeast infection, it's possible for you to pick it up that way, though it's not common. Taking antibiotics for an extended length of time can also increase your chances of getting a yeast infection. Additionally, if you have diabetes, HIV or another condition that compromises your immune system, you are at a higher risk of developing a yeast infection. If none of these risk factors apply to you, however, it's unlikely that you would contract a genital yeast infection.