Ventilator-associated pneumonia (VAP) is a lung infection that develops in patients who are on ventilators, typically due to the presence of bacteria or other pathogens.