A PCR was used to determine the genotypic prevalence of five fimbrial adhesins (F4, F5, F6, F41 and F18), two heat-stable enterotoxins (STa and STh), the heat-labile enterotoxin (LT), and the shiga toxin 2e (Stx2e) in 230 isolates of Escherichia coli from postweaning pigs with diarrhoea or oedema disease. Ninety-four (40.9 per cent) of the isolates carried genes for at least one of the fimbrial adhesins or toxins. Genes for the F18 fimbrial adhesin were detected in 18.3 per cent, and genes for F4, F6, F5 and F41 were detected in 10.0 per cent, 4.3 per cent, 1.7 per cent and 0.8 per cent of the isolates, respectively. Genes for STa, STb and LT were detected in 25.7 per cent, 15.2 per cent and 8.7 per cent of the isolates, respectively. Genes for Stx2e were detected in 36 (15.6 per cent) of the isolates, and among them 24 also contained the gene for F18ab and four also contained the gene for F18ac.