Cucumber is vulnerable to many foliage diseases. Recent studies reported cloning of candidate genes for several diseases in cucumber; however, the exact defence mechanisms remain unclear. Dof genes have been shown to play significant roles in plant growth, development, and responses to biotic and abiotic stresses. Dof genes coding for plant-specific transcription factors can promote large-scale expression of defence-related genes at whole genome level. The genes in the family have been identified and characterized in several plant species, but not in cucumber. In the present study, we identified 36 CsDof members from the cucumber draft genomes which could be classified into eight groups. The proportions of the CsDof family genes, duplication events, chromosomal locations, cis-elements and miRNA target sites were comprehensively investigated. Consequently, we analysed the expression patterns of CsDof genes in specific tissues and their response to two biotic stresses (watermelon mosaic virus and downy mildew). These results indicated that CsDof may be involved in resistance to biotic stresses in cucumber.