Background: Ventilator-associated pneumonia (VAP) is a common and genuine complication in fundamentally sick patients accepting mechanical ventilation. Silver nitrate sol-gel (SN) has been proposed as a potential preventative measure against VAP. Be that as it may, the arrangement of SN with distinctive concentrations and pH values remains a basic factor influencing its effectiveness. Methods: Silver nitrate sol-gel was arranged with distinctive concentrations (0.1852%, 0.03496%, 0.1852%, and 0.01968%) and pH values (8.5, 7.0, 8.0, and 5.0) separately. The antimicrobial action of the silver nitrate and NaOH arrangements were assessed againstEscherichia colias a reference strain. The thickness and pH of the arrangements were measured, and biocompatibility tests were performed on the coating tube. The auxiliary changes in the endotracheal tube (ETT) tests after treatment were analyzed utilizing electron microscopy (SEM) and transmission electron microscopy (TEM). Results: The pH estimations of the diverse arrangements showed that the pH values shifted depending on the test conditions, with pH values extending from 5.0 to 8.5. The consistency estimations of the arrangements showed that the thickness values expanded as the pH values drew closer to 7.5 and diminished when the pH values went over 7.5. The antimicrobial action of the silver nitrate and NaOH arrangements were successful againstEscherichia coli, with microbial checks decreasing in concentration (0.03496%, 0.1852% (pH: 8), and 0.01968%). The biocompatibility tests revealed tall cell reasonability rates, demonstrating that the coating tube was secure for therapeutic utilization and did not hurt typical cells. The SEM and TEM investigation gave visual proof of the antibacterial impacts of the silver nitrate and NaOH arrangements on the bacterial surface or interior of the bacterial cells. Moreover, the investigation revealed that a concentration of 0.03496% was the foremost successful in hindering the development of ETT bacterial colonization at the nanoscale level. Conclusions: We propose that cautious control and alteration of the pH and thickness of the arrangements are essential to guaranteeing the reproducibility and quality of the sol-gel materials. The silver nitrate and NaOH arrangements may serve as a potential preventative degree against VAP in sick patients, with a concentration of 0.03496% appearing to show the most elevated viability. The coating tube may serve as a secure and viable preventative measure against VAP in sick patients. Further investigation is required to optimize the concentration and introduction time of the arrangements to maximize their adequacy in avoiding VAP in real-world clinical settings.