The mud crab (Scylla paramamosain) is a commercially significant marine decapod crustacean. Due to its obvious sexual dimorphism, the mechanism of sex differentiation and gonadal development has attracted significant research interest. The Dmrt (double-sex and mab-3 related transcription factor) genes are vital in animal gonadal development and sex differentiation. In the present study, miR-34 was predicted to target the 3' end of Dmrt-1, idmrt-2, Dmrt-3, Dsx and Dmrt-like genes by prediction software, and the interactions between miR-34 and these Dmrt genes were validated by in vivo and in vitro experiments. Dual luciferase assay results indicated that miR-34 mimics/inhibitors co-transfected with plasmid vectors with 3' end of Dmrt-1, idmrt-2, Dmrt-3, Dsx and Dmrt-like, respectively, led to a significant decrease/increase of fluorescence activity in HEK293T cells. In vivo experiments showed that injection of agomir-34 significantly inhibited Dmrt-1, idmrt-2, Dsx and Dmrt-like expression, while injection of antagomir-34 caused the opposite result. However, Dmrt-3 expression was not affected by injection of miR-34 reagents. Meanwhile, the expression of spermatogenesis and testicular development-related molecular marker genes (IAG, foxl2 and vasa) in mud crabs was significantly changed after injecting the miR-34 reagent in vivo. Furthermore, the result of immunoblotting proved that the expression level of Dmrt-like protein can be regulated by miR-34. These results imply that miR-34 is indirectly involved in sex differentiation and testicular development of S. paramamosain by regulating Dmrt-1, idmrt-2, Dsx and Dmrt-like genes.