Doublesex and Mab-3-related transcription factor (Dmrt) is a type of transcription factor with a zinc-finger DM structural domain, which plays a significant role in sex determination and differentiation in animals. Although Dmrt has been reported in many vertebrates and invertebrates, it has rarely been studied in bivalves. In this study, a total of three members of the Dmrt gene family were identified and characterized in Crassostrea gigas, and all these CgDmrt genes contained a conserved DM domain. Analysis of the phylogenetic tree and gene structure revealed that Dmrt genes clustered on one branch may have similar functions in bivalves. Expression profiling of CgDmrt mRNA in different tissues and stages of gonad development indicated that CgDmrt3 exhibited sexually dimorphic expression and played an important role in the development of the male gonad in C. gigas. Furthermore, analysis of CgDmrt mRNA expression between fertile triploids and sterile triploids showed that CgDmrt3 may be involved in sperm production. Collectively, the systematic analysis of the CgDmrt genes will provide potential insights into the function of these genes in gonadal development.