Coronary artery bypass grafting (CABG) is one of the most common cardiac surgical procedures. It is commonly known that post-operative infection has a negative impact on the patient’s short-term treatment outcomes and long-term prognosis. The aim of the present study was to assess the impact of perioperative infection on 5-year and 10-year survival in patients undergoing elective on-pump CABG surgery. The present prospective observational study was carried out between 1 July 2010 and 31 August 2012 among patients undergoing cardiac surgery at our centre. Infections were identified according to the ECDC definitions. We initially assessed the incidence of infection and its relationship with the parameters analysed. We then analysed the effect of particular parameters, including infection, on 5-year and 10-year survival after surgery. We also analysed the impact of particular types of infection on the risk of death within the period analysed. The significant risk factors for reduced survival were age (HR 1.05, CI 1.02–1.07), peripheral artery disease (HR 1.99, CI 1.28–3.10), reduced LVEF after surgery (HR 0.96, CI 0.94–0.99), post-operative myocardial infarction (HR 1.45, CI 1.05–2.02) and infection (HR 3.10, CI 2.20–4.28). We found a strong relationship between post-operative infections and 5-year and 10-year mortality in patients undergoing CABG. Pneumonia and BSI were the only types of infection that were found to have a significant impact on increased long-term mortality after CABG surgery.