Stenotrophomonas maltophilia (SMA) has emerged as an important pathogen capable of causing an opportunistic and nosocomial infection. We performed RNA sequencing (RNA-seq) of lung tissues from mice with pulmonary SMA infection over time via aerosolized intratracheal inhalation to investigate transcription profile changes in SMA-infected lungs. A mouse model of acute lethal SMA pneumonia was established in this study using aerosolized intratracheal inhalation, laying the groundwork for future SMA research. RNA-seq was then used to create a transcriptional profile of the lungs of the model mice at 0, 4, 12, 24, 48, and 72 hours post-infection (hpi). Mfuzz time clustering, weighted gene coexpression network analysis (WGCNA), and Immune Cell Abundance Identifier for mouse (ImmuCellAI-mouse) were used to analyze RNA-seq data. A gradual change in the lung transcriptional profile was observed, which was consistent with the expected disease progression. At 4 hpi, the expression of genes related to the acute phase inflammatory response increased, as predicted abundance of innate immune cells. At this stage, an increased demand for energy was also observed, including an increase in the expression of genes involved in circulation, muscle function and mitochondrial respiratory chain function. The expression of genes associated with endoplasmic reticulum stress (ERS) and autophagy increased at 24 hpi. Unlike the number of natural killer (NK) cells following most bacterial lung infections, the abundance of NK cells decreased following infection with SMA. The expression levels of Cxcl10, Cd14, Gbp5, Cxcr2, Tnip1, Zc3h12a, Egr1, Sell and Gbp2 were high and previously unreported in SMA pneumonia, and they may be important targets for future studies. To our knowledge, this is the first study to investigate the pulmonary transcriptional response to SMA infection. The findings shed light on the molecular mechanisms underlying the pathogenesis of SMA pneumonia, which may aid in the development of therapies to reduce the occurrence of SMA pulmonary infection.