Drinking water disinfection byproducts have been associated with an increased risk for congenital defects including cardiac defects. Using Swedish health registers linked to information on municipal drinking water composition, individual data on drinking water characteristics were obtained for 58,669 women. Among the infants born, 753 had a cardiac defect. The risk for a cardiac defect was determined for ground water versus surface water, for different chlorination procedures, and for trihalomethane and nitrate concentrations. Ground water was associated with an increased risk for cardiac defect when crude rates were analyzed but after suitable adjustments this excess rate was found to be determined by chlorination procedures including chlorine dioxide. Chlorine dioxide appears itself as an independent risk factor for cardiac defects (adjusted odds ratio 1.61 (95%CI 1.00-2.59)). The risk for cardiac defects increased with increasing trihalomethane concentrations (P=0.0005). There was an indicated but statistically nonsignificant excess risk associated with nitrate concentration. The individual risk for congenital cardiac defect caused by chlorine dioxide and trihalomethanes is small but as a large population is exposed to public drinking water, the attributable risk for cardiac defects may not be negligible.