Streptococcus agalactiae is an important fish pathogen and a leading cause of major economic losses to the aquaculture industry worldwide. In the present study, the two truncated recombinant proteins of cell wall surface anchor family of S agalactiae, CWSAP465 and CWSAP1035, were expressed in Escherichia coli, and their immunogenicity and efficacy against the bacterium were evaluated in tilapia and turbot. The results showed that the prokaryotic expression of the two constructs, p32a-CWSAP465 and p32a-CWSAP1035, gave rise to a high yield of soluble proteins with good immunogenicity. The immunisation-challenge study revealed that tilapia and turbot immunised with recombinant truncated proteins produced high levels of antibodies with a peak at four weeks after immunisation and were protected from a challenge by a virulent S agalactiae at a dose of 1×109 colony forming units/ml. The recombinant truncated proteins had higher efficacy than the whole-cell inactivated vaccine. Therefore, the study demonstrated that CWSAP465 and CWSAP1035 are two viable vaccine candidates against S agalactiae in fish.