Effective therapeutic modalities and drug administration strategies for the treatment of chronic obstructive pulmonary disease (COPD) exacerbations are lacking. Here, mucus and biofilm dual-penetrating immunoantimicrobials (IMAMs) are developed for bridging antibacterial therapy and pro-resolving immunotherapy of COPD. IMAMs are constructed from ceftazidime (CAZ)–encapsulated hollow mesoporous silica nanoparticles (HMSNs) gated with a charge/conformation-transformable polypeptide. The polypeptide adopts a negatively charged, random-coiled conformation, masking the pores of HMSNs to prevent antibiotic leakage and allowing the nebulized IMAMs to efficiently penetrate the bronchial mucus and biofilm. Inside the acidic biofilm, the polypeptide transforms into a cationic and rigid α helix, enhancing biofilm retention and unmasking the pores to release CAZ. Meanwhile, the polypeptide is conditionally activated to disrupt bacterial membranes and scavenge bacterial DNA, functioning as an adjuvant of CAZ to eradicate lung-colonizing bacteria and inhibiting Toll-like receptor 9 activation to foster inflammation resolution. This immunoantibacterial strategy may shift the current paradigm of COPD management.