A polymer containing a repeating peptide sequence can stimulate T-cell-independent IgG antibody production in vivo.