Streptococcus agalactiae (group B streptococcus; GBS) is an important human pathogen causing pneumonia, sepsis and meningitis in neonates, as well as infections in pregnant women, immunocompromised individuals, and the elderly. For the future control of GBS-inflicted disease, GBS surface exposed proteins are particularly relevant as they may act as antigens for vaccine development and/or as serosubtype markers in epidemiological settings. Even so, the genes encoding some of the surface proteins established as serosubtype markers by antibody-based methods, like the R3 surface protein, are still unknown. Here, by examining a Norwegian GBS collection consisting of 140 strains, we find that R3 protein expression correlates with the presence of the gene sar5. By inducible expression of sar5 in an R3-negative bacterial strain we show that the sar5 gene product is specifically recognized by an R3 monoclonal antibody. With this we identify sar5 as the gene encoding the R3 surface protein, a serosubtype marker of hitherto unknown genetic origin.