Numbers of ectoparasitic blow fly (Protocalliphora azurea) larvae (Diptera: Calliphoridae), adult and larval hen fleas, Ceratophyllus gallinae (Siphonaptera: Ceratophyllidae), and other nest-dwelling insects were counted from the nests of the great tit, Parus major, and the pied flycatcher, Ficedula hypoleuca, in southwestern Finland around a factory complex emitting large quantities of sulphuric oxides and heavy metals. Protocalliphora azurea larvae were more frequently found in the nests of P. major than in those of F. hypoleuca. The prevalence of P. azurea larvae tended to be lower in polluted areas. The number of P. azurea larvae correlated positively with nest size and brood size of P. major. This may be caused by difficulties in sanitation of large and crowded nests. The numbers of fleas and their larvae were negatively affected by moisture in the nests. Nests of F. hypoleuca contained more adult fleas in polluted areas. This may indicate reduced resistance of birds exposed to heavy metals, but other possibilities are also discussed. We found a detrimental effect of P. azurea larvae on the growth of P. major nestlings, and an effect of fleas on mortality of F. hypoleuca nestlings, but these effects were not enhanced by air pollution. We conclude that the ectoparasites studied, at densities observed in our study area, are of minor importance in determining the breeding success of these two bird species.