Opportunistic infections are when germs cause an infection in people with weakened immune systems. There are many different causes of opportunistic infections, including consuming contaminated foods and beverages or coming into contact with the bodily fluids of an infected person. Medications can help prevent and treat opportunistic infections.
Advertisement
Cleveland Clinic is a non-profit academic medical center. Advertising on our site helps support our mission. We do not endorse non-Cleveland Clinic products or services. Policy
An opportunistic infection happens when pathogens (germs) affect people whose immune systems aren’t working as well as they should (immunocompromised). If your immune system was healthy, the infection would be mild, or you wouldn’t have one at all. Examples of opportunistic pathogens include:
Advertisement
Cleveland Clinic is a non-profit academic medical center. Advertising on our site helps support our mission. We do not endorse non-Cleveland Clinic products or services. Policy
You may have a weakened immune system for many reasons. Some conditions you have at birth (congenital conditions) may affect your immune system. But medications/therapies or conditions you get later in life can also harm it.
Opportunistic infections (OIs) are serious and even life-threatening. If you have a compromised immune system and show symptoms of an OI, don’t wait — get in touch with a healthcare provider.
Common examples of opportunistic infections include:
There is a wide range of opportunistic infections, so symptoms vary. But some of the most common opportunistic infection symptoms include:
There are many ways in which you can come across germs that cause opportunistic infections. You might inhale germs from the air around you, or eat or drink a contaminated food or drink. Some of the most common sources of opportunistic germs include:
Advertisement
You’re at greater risk of an opportunistic infection if you:
A healthcare provider will ask about your symptoms and medical history, then do a physical exam. To help confirm their diagnosis, they may recommend testing. These tests may include:
It depends on the type of infection you have. Possible treatments include:
Even after you feel better, a healthcare provider may recommend staying on the same medicine or taking something else to keep the infection from coming back (prophylaxis).
Contact a healthcare provider right away if you have a compromised immune system and develop symptoms of an infection. Let them know:
You may also wish to ask a provider questions to help understand your condition and learn how to get and stay healthy. These may include:
Advertisement
Opportunistic infections are serious and can be hard to treat. But healthcare providers can help you stay healthy with regular checkups and preventive care.
The following tips can help you prevent OIs:
Healthcare providers don’t usually consider pneumonia an opportunistic infection because anyone can get it. Many kinds of bacteria and viruses can cause pneumonia. But certain fungi — like Cryptococcus, Pneumocystis jirovecii and Coccidioides — are more likely to cause pneumonia in people with compromised immune systems. Healthcare providers consider pneumonia from these causes to be opportunistic infections.
Advertisement
Having a compromised immune system can be challenging in many ways. There’s a lot of stress and uncertainty about your health. It’s easy to feel overwhelmed by the precautions you must take to prevent opportunistic infections. And you might worry whether your body can manage one. But many people with compromised immune systems work and have active social lives. Healthcare providers will work with you to lower your risk of an opportunistic infection and help you educate yourself and others on how to keep yourself safe.
Advertisement
Cleveland Clinic’s primary care providers offer lifelong medical care. From sinus infections and high blood pressure to preventive screening, we’re here for you.
Last reviewed on 07/10/2025.
Learn more about the Health Library and our editorial process.