The present invention relates to a vaccine composition for preventing staphylococcus aureus infection containing, as an active ingredient, a ribitol-phosphate which has been modified only by a β-configuration in N-Acetylglucosamine (GlcNAc), a repeating unit of the ribitol-phosphate, or a wall teichoic acid (WTA) containing the repeating unit. The composition according to the present invention contains a coupling motif (an epitope) for an anti-WTA antibody, and thus can be effectively used as a vaccine composition or to prevent staphylococcus aureus infection by generating anti-WTA antibody.