Our findings reveal that a Wnt5A–gut commensal axis indeed influences the gut B-cell repertoire and resistance of the host toward infection. The gene discussed is WNT5A; the disease is infection.