We develop a theory of the reversible switching of the magnetic state of the ferromagnet-insulator-normal metalferromagnet (FINF) nanostructure. The switching is controlled by tuning the Coulomb blockade strength via the gate voltage on the normal metal granule. The proposed mechanism allows for realizing the switching without passing a dissipative current through the structure.