Vitellogenin (Vg) is the major precursor of the egg-yolk proteins, which mainly acts as an energy reserve molecule for providing nutrients during embryonic development. Vg also plays an immune function in vertebrates such as fish, but there are few studies on the immune function of Vg in invertebrates. In the present study, a Vg homologue (CgVg) was identified and characterized in oyster Crassostrea gigas. There are three domains in the CgVg protein, including a Vitellogenin_N domain, a domain of unknown function 1943 (DUF1943) and a von Willebrand factor type D domain (VWD). The mRNA transcripts of CgVg were detected in all tested tissues with high expression in the gonad, hepatopancreas and haemocytes, which was 466.29-, 117.15- and 57.49-fold (p<0.01) of that in adductor muscle, respectively. After Vibrio splendidus stimulation, the mRNA expression level of CgVg in haemocytes increased significantly at 6, 12 and 24h, which was 1.97-, 3.58- and 1.3-fold (p<0.01) of that in the seawater group, respectively. The immunofluorescence assay showed that positive signals of CgVg protein were mainly located at the cytoplasm of haemocytes. The recombinant protein of DUF1943 domain (rDUF1943) and VWD domain (rVWD) was able to bind lipopolysaccharide (LPS), mannose (MAN), peptidoglycan (PGN) and poly (I:C), as well as Gram-positive bacteria (Staphylococcus aureus and Micrococcus luteus), Gram-negative bacteria (Escherichia coli and V. splendidus) and fungi (Pichia pastoris). rDUF1943 exhibited stronger agglutination activity towards S. aureus, M. luteus, E. coli, V. splendidus and P. pastoris, while agglutination was only observed in the rVWD group towards P. pastoris. The rVWD inhibited the growth of E. coli, S. aureus and V. splendidus, while no antibacterial activity was detected in rDUF1943 group. Collectively, CgVg not only functioned as a pattern recognition receptor (PRR) to bind various microorganisms and PAMPs, but also as an immune effector participating in the clearance of invaders, in which DUF1943 and VWD domain were mainly responsible for agglutinating and inhibiting microorganism respectively.