Enterotoxigenic Escherichia coli (ETEC) and Shigella account for a substantial proportion of acute diarrhoeal illnesses among Third-World children. Rapid detection of these infectious agents in faeces followed by the prompt implementation of public health measures could help reduce their spread during the early phase of epidemics. Towards this end, three pairs of synthetic oligonucleotide primers were prepared and shown to hybridize specifically to the genes encoding the heat-stable (ST) and the heat-labile (LT) enterotoxins of ETEC and to invasion-associated loci (ial) of the large Shigella virulence plasmid. When the three primer pairs were used together in the polymerase chain reaction (PCR), the three corresponding genetic loci could be simultaneously amplified using DNA extracted directly from stool; the amplified products were readily detected by ST-, LT- and ial-specific, alkaline phosphatase-labelled oligonucleotide probes (AP probes). The performance of this system was evaluated in a Mayan community in southeastern Mexico, where diarrhoeal illnesses are a common cause of childhood morbidity and mortality. Using only simple and inexpensive laboratory equipment, multigene amplification with these primers and probes led to the identification of ETEC and/or Shigella in the stools of 20 out of 71 children with diarrhoea; the procedure could be completed in seven hours and was more sensitive than conventional diagnostic tests or DNA probes used without amplification.