Lysozyme (muramidase) represents an important defense molecule of the fish innate immune system. Known for its bactericidal properties, lysozyme catalyzes the hydrolysis of β-(1,4)-glycosidic bonds between the N-acetyl glucosamine and N-acetyl muramic acid in the peptidoglycan layer of bacterial cell walls. In this study, the complete coding sequence of a g-type lysozyme (RBgLyz) was identified in the Oplegnathus fasciatus rock bream fish genome by means of multi-tissue normalized cDNA pyrosequencing using Roche 454 GS-FLX™ technology. RBgLyz is composed of 669 bp, with a 567 bp open reading frame that encodes 188 amino acids. Protein motif searches indicated that RBgLyz contains the soluble lytic transglycosylase domain involved in maintaining cell wall integrity. Furthermore, RBgLyz shares significant identity (81.4%) with Chinese perch Siniperca chuatsi. Quantitative real-time RT-PCR analysis results showed that RBgLyz transcripts are constitutively expressed in various tissues from healthy rock breams. In order to determine RBgLyz function in immunity, its expression was analyzed in head kidney following exposure to known immune stimulants or pathogens. RBgLyz transcripts were significantly up-regulated in response to challenge with lipopolysaccharide (LPS) and Edwardsiella tarda, as compared to non-injected control fish. Polyinosinic:polycytidylic acid (poly I:C) dsRNA stimulated a moderate expression of RBgLyz, as did Streptococcus iniae but to a lesser extent. There were no specific time-dependent effects on RBgLyz mRNA expression observed in response to rock bream iridovirus (RBIV) infection. Taken together, the gene expression results indicated that g-type lysozyme plays a role in the innate immune response to LPS, poly I:C, E. tarda and S. iniae in rock bream. Thus, we generated recombinant RBgLyz in an Escherichia coli expression system and characterized its antimicrobial activity. Our results indicated that recombinant RBgLyz had lytic activity against Gram-negative Vibrio salmonicida, Gram-positive Listeria monocytogenes, S. iniae and Micrococcus lysodeikticus. In addition, observations by scanning electron microscope (SEM) confirmed that the cell morphology of M. lysodeikticus was altered in the presence of recombinant RBgLyz.