Spiders have primarily adapted to terrestrial life, yet a number of species have made evolutionary transitions to marine and freshwater environments. While its physiological and behavioral adaptations have been characterized, the genetic basis of semi-aquatic and aquatic adaptation in spiders remains poorly understood. Here, we provide a high-quality, chromosome-level genome assembly for the aquatic spider Argyroneta aquatica, alongside a reference transcriptome for the semi-aquatic spider Desis martensi. We performed comparative genomes analyses of 22 spider species, including a unique aquatic spider, two semi-aquatic spiders and 19 terrestrial spider species, with a focus on those in the marronoid clade. By integrating morphological, phylogenomic, comparative genomic, transcriptomic, and metabolomic analyses, we explored the genomic adaptations of aquatic and semi-aquatic spiders. Phylogenomic analysis suggests that aquatic and semi-aquatic spiders have independently evolved from their terrestrial ancestors and represent divergent evolutionary routes We found hundreds of genes tend to experience relaxed selection, positive selection, and evidence of horizontal gene transfer (HGT) associated with the transition to aquatic and semi-aquatic life in spiders. These genes are associated with respiratory, osmoregulatory, fat metabolism and digestion, hypoxia, and thermal functions, putatively facilitate the adaptations to diverse underwater life. Altogether, our findings highlight the divergent evolutionary mechanisms enabling spiders to thrive in diverse aquatic environments, providing insights into the genomic basis of adaptations to semi-aquatic and aquatic habitats.