Although the prevalence of Escherichia coli O157 on cattle farms has been examined extensively, the relationship between this pathogen and farm type has been established only rarely. A large-scale study was designed to determine the prevalence of E. coli O157 in the Flemish region of Belgium on farms of dairy cattle, beef cattle, mixed dairy and beef cattle, and veal calves. The effect of various factors on the occurrence at the pen level also was evaluated. In 2007, 180 farms were randomly selected based on region, farm size, and number of animals purchased and were examined using the overshoe sampling method. When possible, overshoes used in areas containing animals in three different age categories (< 8 months, 8 to 30 months, and > 30 months) were sampled on each farm. In total, 820 different pens were sampled and analyzed for the presence of E. coli O157 by enrichment, immunomagnetic separation, and plating on selective agar. Presumptive E. coli O157 colonies were identified using a multiplex PCR assay for the presence of the rfb(O157) and fliC(H7) genes. The statistical analysis was carried out with Stata SE/10.0 using a generalized linear regression model with a logit link function and a binomial error distribution. The overall farm prevalence of E. coli O157 was 37.8% (68 of 180 farms). The highest prevalence was found on dairy cattle farms (61.2%, 30 of 49 farms). The prevalences on beef, mixed dairy and beef, and veal calf farms were 22.7% (17 of 75 farms), 44.4% (20 of 45 farms), and 9.1% (1 of 11 farms), respectively. A significant positive correlation between age category and E. coli O157 prevalence was found only on mixed dairy and beef farms and dairy farms. No influence of farm size or introduction of new animals was demonstrated.