Environment friendly separation of constructive and unfavorable expenses is important for growing high-performance nanogenerators. On this article, we describe a technique that was not beforehand demonstrated to separate expenses which allows us to manufacture a magnetic power harvesting system. The magnetic area induces the migration of the cellular magnetic counterions (Dy(NO3)4−) which establishes anion gradients inside a layer of polyionic liquid micropores (PLM). The PLM is covalently cross-linked on which the constructive expenses are mounted on the matrix, that’s, motionless. In a tool with a construction of Au/dielectric//mag-PLM//dielectric/Au, the cost gradient is subsequently reworked into the output voltage by electrostatic induction. Eradicating the magnetic area results in the backflow of magnetic anions which produces a voltage with the same magnitude however reversed polarity. The parameters in fabricating the magnetic PLM akin to photoinitiator focus, UV irradiation time, water remedy time, and temperature are discovered to dramatically affect the dimensions of micropores and the efficient focus of magnetic anions. Underneath optimized circumstances, an output voltage with an amplitude of roughly 4 V is lastly achieved. We anticipate this new technique might discover sensible purposes in additional enhancing the output efficiency.