Ruminants are considered the main reservoir for transmission of Coxiella burnetii (Cb) to humans. The implementation of effective control measures against Cb in ruminants requires knowledge about potential risk factors. The objectives of this study were (i) to describe the spatial distribution of Q fever-infected dairy cattle herds in Sweden, (ii) to quantify the respective contributions of wind and animal movements on the risk of infection, while accounting for other sources of variation, and (iii) to investigate the possible protective effect of precipitation. A total of 1537 bulk milk samples were collected and tested for presence of Cb antibodies. The prevalence of test-positive herds was higher in the south of Sweden. For herds located in areas with high wind speed, open landscape, high animal densities and high temperature, the risk of being infected reached very high values. Because these factors are difficult to control, vaccination could be an appropriate control measure in these areas. Finally, the cumulated precipitation over 1 year was identified as a protective factor.