The aim of the study was to assess the incidence of hospital and community acquired bacterial pneumonia in HIV-infected subjects prior to and after the introduction of highly active antiretroviral therapy (HAART). We studied 266 patients with bacterial pneumonia over two separate periods, 154 in the first period and 112 in the second period. A statistically significant difference in the incidence of bacterial pneumonia in the two study periods was observed ranging from 13.1 to 8.5 episodes per 100 persons. The incidence of community-acquired bacterial pneumonia decreased from 10.7 to 7.7 (P=0.01), while that of nosocomial episodes decreased from 2.4 to 0.8 episodes (P=0.003). Low levels of peripheral CD(4+) cells (<100/mm(3)) and intravenous drug abuse (IVDA) were significantly associated with the development of community-acquired bacterial pneumonia, while an increasing value of APACHE III score and prolonged hospitalisation increased the risk of nosocomial bacterial pneumonia in both study periods.