Nosocomial infections pose a significant public health concern, impacting over 100 million people worldwide annually. Within this research, we investigated heparin nebulization through the endotracheal tube and its effect on preventing blockage due to clots and mucus plugs compared to normal saline. A double-blind clinical experiment was done on a cohort of 40 pneumonia patients who were intubated and hospitalized in theintensive care unit (ICU) at Imam Khomeini Hospital in Ahvaz, Iran. The individuals were randomly assigned to two groups of 20 patients using a random allocation technique. The initial cohort was administered 5000 IU of heparin diluted in 4 ccs of 0.9% normal saline every eight hours via a nebulizer through a tracheal tube. In contrast, the second cohort was given 5 ccs of normal saline as a nebulizer through a tracheal tube. The study compared the incidence of tracheal tube obstruction caused by mucus plug or clot, the occurrence of patient hypoxia resulting in emergency tracheal tube replacement, and the frequency of emergency tracheal tube suction due to partial obstruction caused by mucus plug in both the heparin and saline groups. According to our data, the number of patients in the heparin group who could avoid the need for emergency tracheal tube replacement owing to blockage was more significant than in the ordinary saline group (P=0.013). Heparin was significantly correlated with the number of times emergency suction was required to remove a tracheal tube occlusion (P=0.01). Heparin had no significant effect on coagulation factors (international normalized ratio [INR], platelet[PLT], and partial thromboplastin time [PTT]), Acute Physiology and Chronic Health Evaluation (APACHE) score, pneumonia severity index (PSI), saturation of patients, or tracheal tube secretions. There was no statistically significant difference in total time spent in the intensive care unit (P=0.91). Further studies are suggested to determine the effect of heparin nebulization on preventing endotracheal tube obstruction due to clots and mucus plugs in intubated ICU patients.