Secondary infections are infections that occur during or after treatment for a primary infection. These are typically caused by opportunistic pathogens that take advantage of the weakened immune system or disrupted microbiota. For instance, a person recovering from a viral infection like influenza might develop a secondary bacterial infection such as pneumonia.