The g-type lysozyme is a key protein of the innate immune system to fight bacterial infections. In this study we cloned and characterized the gene encoding for g-type lysozyme in Senegalese sole (Solea senegalensis). The deduced amino acid sequence comprised 195 residues containing the three conserved catalytic residues and two cysteines. A BAC analysis revealed that the gene is structured in 5 exons and 4 introns. Also, two polyadenylation signals that generate two cDNAs differing in 3′-UTR length were detected. Promoter analysis showed the presence of the main cis-acting elements involved in the transcriptional regulation of the gene. At genomic level, the g-type lysozyme was associated with mucolipin 1 and the peptidoglycan recognition protein 2 conforming a cluster of antidefensive genes with a well-conserved synteny across Percomorpha. FISH analysis using the BAC clone revealed a single hybridization signal located in an acrocentric chromosome pair. The phylogenetic analysis confirmed that the g-type lysozyme represents a complex group in fish that has been shaped by gene duplications and diversification with several positions under Darwinian selection. Expression analysis in juvenile tissues indicated that transcript levels were higher in gills, spleen and heart. During development, gene expression activated just at the beginning of metamorphosis, increasing progressively until climax. Hormonal treatments demonstrated that this gene was regulated positively by thyroid hormones during development and negatively by dexamethasone. In contrast, no response was observed after all-trans retinoic acid or 4-diethylaminobenzaldehyde treatments. Finally, treatments using lipopolysaccharide, lipoteichoic acid, peptidoglycan, zymosan and poly(I:C) activated gene expression in a time- and tissue-specific manner. Taken together, data indicate that g-type lysozyme is a high evolutionary conserved gene that diversified to adapt to changing environment and pathogen conditions. Gene expression can be activated by diverse pathogen stimuli and modulated by physiological factors with important consequences for the aquaculture of this species.