An electrodynamic model of ball lightning is proposed, according to which it is considered as a collection of plasmoids, consisting of electrons and protons, which rotate in closed orbits. Protons are retained in the orbit due to Coulomb attraction to the electron ring, while electrons are drifting in the crossed electric and the magnetic field, generated by the protons’ motion. This system has a non-compensated positive electric charge. These plasmoids placed inside a water shell serve to isolate a vacuum cavity from the atmosphere and to create a force, preventing expansion of proton rings. A mechanism of ball lightning creating near a loop of linear lightning channel is discussed. Ultraviolet radiation of the lightning discharge ionizes air, and due to the action of radio-frequency radiation with a non-uniform spatial distribution of intensity, a vacuum cavity is formed. The action on the plasma exerted by the crossed magnetic and eddy electric fields leads to separation and acceleration of charges. Losing a part of electrons, the system acquires a positive charge. Due to motion of water drops in the non-uniform field of this charge a dielectric shell around the ensemble of plasmoids is formed. A scheme of setup for ball lightning creation in laboratory is proposed.