<p>Keratins are intermediate filament proteins that are important for epidermal strength and protection from desiccation. Keratin genes are highly duplicated and have diversified by forming two major clusters in the genomes of terrestrial vertebrates. The keratin genes of lungfishes, the closest fish to tetrapods, have not been studied at the genomic level, despite the importance of lungfishes in terrestrial adaptation. Here, we identified keratin genes in the genomes of two lungfish species and performed syntenic and phylogenetic analyses. Additionally, we identified keratin genes from two gobies and two mudskippers, inhabiting underwater and terrestrial environments. We found that in lungfishes, keratin genes were duplicated and diversified within two major clusters, similar to but independent of terrestrial vertebrates. By contrast, keratin genes were not notably duplicated in mudskippers. The results indicate that keratin gene duplication occurred repeatedly in lineages close to tetrapods, but not in teleost fish, even in species adapted to terrestrial environments.</p>