The present invention pertains to a vaccine comprising an IgM protease antigen of Streptococcus suis, for use in a method wherein a female pig is vaccinated in order to protect a piglet against Streptococcus suis through the intake of colostrum of the vaccinated female pig.