The crystal structures of anti-carbohydrate antibodies in complex with antigen reveal the key features of antigen recognition and provide information that can guide the design of vaccines, particularly synthetic ones.