Numerous studies report that perioperative oral care decreases the frequency of postoperative pneumonia or infection. However, no studies have analyzed the specific impact of oral infection sources on the postoperative course, and the criteria for preoperative dental care differ among institutions. This study aimed to analyze the factors and dental conditions present in patients with postoperative pneumonia and infection. Our results suggest that general factors related to postoperative pneumonia, including thoracic surgery, sex (male > female), the presence or absence of perioperative oral management, smoking history, and operation time, were identified, but there were no dental-related risk factors associated with it. However, the only general factor related to postoperative infectious complications was operation time, and the only dental-related risk factor was periodontal pocket (4 mm or higher). These results suggest that oral management immediately before surgery is sufficient to prevent postoperative pneumonia, but that moderate periodontal disease must be eliminated to prevent postoperative infectious complication, which requires periodontal treatment not only immediately before surgery, but also on a daily basis.