what is the most important element for creating a magnetic field. and why?

Moving charges..... right?