Because of the presence of a charge, a particle produces an electric field. Also, because of its motion, that is, the flow of charge or current, there is generation of a magnetic field.