The present invention pertains to a vaccine comprising an IgM protease antigen of Streptococcus suis, for use in a method for protecting piglets having maternally derived anti-Streptococcus suis antibodies against Streptococcus suis, by administering the vaccine to the piglets at an age of at most 28 days, preferably before the piglets are weaned.