Epstein-Barr virus (EBV) causes infectious mononucleosis and is associated with epithelial-cell cancers and B cell lymphomas. An effective EBV vaccine is not available. We found that antibodies to the EBV glycoprotein gH/gL complex were the principal components in human plasma that neutralized infection of epithelial cells and that antibodies to gH/gL and gp42 contributed to B cell neutralization. Immunization of mice and nonhuman primates with nanoparticle vaccines that displayed components of the viral-fusion machinery EBV gH/gL or gH/gL/gp42 elicited antibodies that potently neutralized both epithelial-cell and B cell infection. Immune serum from nonhuman primates inhibited EBV-glycoprotein-mediated fusion of epithelial cells and B cells and targeted an epitope critical for virus-cell fusion. Therefore, unlike the leading EBV gp350 vaccine candidate, which only protects B cells from infection, these EBV nanoparticle vaccines elicit antibodies that inhibit the virus-fusion apparatus and provide cell-type-independent protection from virus infection.