We prove that for spacetimes solving the EinsteinMaxwell (EM) equations, the electromagnetic field contributes at highest order to the nonlinear memory effect of gravitational waves. In Nonlinear nature of gravitation and gravitational-wave experiments, Christodoulou showed that gravitational waves have a nonlinear memory. He discussed how this effect can be measured as a permanent displacement of test masses in a laser interferometer gravitational-wave detector. Christodoulou derived a precise formula for this permanent displacement in the Einstein vacuum (EV) case. We prove in Theorem 2.6 that for the EM equations this permanent displacement exhibits a term coming from the electromagnetic field. This term is at the same highest order as the purely gravitational term that governs the EV situation. On the other hand, in Section 3, we show that to leading order, the presence of the electromagnetic field