How to get rid fungus on my penis?

Is very irritating because it happens from the long time. I still dont understand why it keeps coming back when Im fully cured with medicines. Do we have any way to keep away these sickness to maintain a healthy one?