It’s quite uncommon for antibiotics themselves to directly cause erectile dysfunction (ED), but it’s not entirely out of the question. The stress of being ill, along with any associated fatigue or even psychological effects from worrying about your health, can all contribute to ED. Additionally, if the infection or the antibiotics are causing other side effects like upset stomach, diarrhea, or mood changes, these could also indirectly affect your sexual function. It might be helpful to discuss this with your doctor who can provide personalized advice based on your specific situation and overall health. Often, once the underlying infection is resolved and you’re feeling better, normal function resumes without further issues.