A magnetic field can be produced by
A moving charge and changing electric field both produces magnetic field.