Ventilator-associated pneumonia (VAP) is a type of lung infection that occurs in people who are on mechanical ventilation breathing machines in hospitals. It typically develops 48 hours or more after mechanical ventilation is provided. VAP can be a significant complication in patients who are already critically ill, including those with cancer.