Bacterial pneumonia is a common disease with significant health risks. However, the overuse antibiotics in clinics face challenges such as inadequate targeting and limited drug utilization, leading to drug resistance and gut dysbiosis. Herein, a dual-responsive lung inflammatory tissue targeted nanoparticle (LITTN), designed for targeting lung tissue and bacteria, is screened from a series of prepared nanoparticles consisting of permanent cationic lipids, acid-responsive lipids, and reactive oxygen species-responsive and phenylboronic acid-modified lipids with different surface properties. Such nanoparticle is further verified to enhance the adsorption of vitronectin in serum. Additionally, the optimized nanoparticle exhibits more positive charge and coordination of boric acid with cis-diol in the infected microenvironment, facilitating electrostatic interactions with bacteria and biofilm penetration. Importantly, the antibacterial efficiency of dual-responsive rifampicin-loaded LITTN (Rif@LITTN) against methicillin-resistant staphylococcus aureus is 10 times higher than that of free rifampicin. In a mouse model of bacterial pneumonia, the intravenous administration of Rif@LITTN could precisely target the lungs, localize in the lung infection microenvironment, and trigger the responsive release of rifampicin, thereby effectively alleviating lung inflammation and reducing damage. Notably, the targeted delivery of rifampicin helps protect against antibiotic-induced changes in the gut microbiota. This study establishes a new strategy for precise delivery to the lung-infected microenvironment, promoting treatment efficacy while minimizing the impact on gut microbiota. Statement of significanceIntravenous antibiotics play a critical role in clinical care, particularly for severe bacterial pneumonia. However, the inability of antibiotics to reach target tissues causes serious side effects, including liver and kidney damage and intestinal dysbiosis. Therefore, achieving precise delivery of antibiotics is of great significance. In this study, we developed a novel lung inflammatory tissue-targeted nanoparticle that could target lung tissue after intravenous administration and then target the inflammatory microenvironment to trigger dual-responsive antibiotics release to synergistically treat pneumonia while maintaining the balance of gut microbiota and reducing the adverse effects of antibiotics. This study provides new ideas for targeted drug delivery and reference for clinical treatment of pneumonia.