The study of gene diversity in interspecies contributes to our understanding of the environmental adaptation, evolutionary history, origin, and stability of biodiversity. Crabs are the main component of the macrobenthos community; therefore, how crabs adapt to different environments can be a guide to understand how to maintain community diversity. Previous studies on environmental adaptation have focused on differences in morphology, organ structure, and function, but there is a lack of research that explores this topic from the perspective of gene diversity in benthonic crabs. In this study, the leucosiid crab was selected for transcriptome assembly and was analyzed as this superfamily is one of the main clades in brachyuran crabs. Their transcriptome data were used to understand the gene diversity, phylogeny, and divergence time estimations. Subsequently, candidate gene families for depth adaptation were found in eight species that live in habitats with different depths. The results indicated that the number of total unigene sequences was between 65,617 (Philyra malefactrix) and 98,279 (Arcania heptacantha) in eight species. The total length of the genes was counted to be between 48,006,211 and 95,471,088 bp. The age of the superfamily Leucosioidea is over 150 Ma, dating back to at least the Jurassic geological period. The divergence of the family Leucosiidae would have occurred in the middle Cretaceous (around 100 Ma). After dividing into groups of three depth types, which carried the gene families, it was found that the three groups shared the solute carrier family, whereas bile acid secretion, organic solute transporter subunit alpha-like, and solute carrier organic anion transporter families only existed in the shallow group. This result shown that the gene function of ion concentration regulation might one of the candidate gene families related to the environmental adaptation of the leucosiid crab. Hence, these gene families will be analyzed in future studies to understand the mechanism of depth adaptation regulation in crabs.