According to Ampere-Maxwell law, magnetic field is generated by moving charges and also by varying electric fields.
where, p0 and e0 are the permeability and permittivity of vacuum respectively and the integral is over a closed loop, I is the current flowing through the loop, E is the electric flux linked with the circuit.